I’m just trying to get inject JS to return a value of the display or visibility of a pop up window on a web app. When I run my Inject JS I get an error HRESULT: 0x80020101. Which is supposed to indicate my syntax is wrong and I feel like it has something to do with the apostrophe or quotation marks that I’m using…?
I didn’t want to attach an external JS file because it says it can be written directly in as a string, and it’s simple enough I think it should just be inline in the activity.
Can someone attach an example of how to do this? Because mine isn’t returning anything and I keep getting the same error. If this activity is contained within an attach browser activity, does it make a call to the webpage as a whole or do I need to include a selector for the specific element I’m trying to find the visibility/display of?
Thanks for your help :