In my example I needed to extract an url from a button on google. I found the found the value using this code:
So my code in the inject JS Script activity looked liked this:
var url_link = document.getElementsByClassName("_ldf").children.href;
Which returns the url as a string.
You need to change the value after the “=” sign in order to get your value. I would suggest playing around with the console in your web browser to try to find the element you are looking for.
Edit: I tried your HTML code:
So if thats the text you need you can just replace the “document.getElements…” in the picture above, after the “=” sign and you should be able to extract the element