Hi All, trying to get some help on using a js event in my browser monitor. I am attempting to capture a variable on the screen and use it later but the step ends up failing with "js execution took too long".
I have tried several different wait times. With the "wait 5 seconds" option it sits for much longer than 5 seconds before erroring out.
I logged into the page > dev tools > right click on the element and chose 'copy js path", then used it in the query selector. I am not 100% about the target window but we never open a new tab/window so left as default.
Any help with this is much appreciated as I am not very html savvy.
Solved! Go to Solution.
Hi Hannah, adding inner.HTML to the end fixed the issue and I can see the log now.
var otp = document.querySelector("#content > div > form > fieldset > div:nth-child(3) > div > p:nth-child(3) > b").innerHTML;
Thanks for the response/help!