WebPagetest Forums
exec commands not working - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: exec commands not working (/showthread.php?tid=13708)



exec commands not working - nweinert - 05-08-2015 03:09 AM

I have a private instance running and am trying to log into a website using a script.

I am succesfully able to fill in the form fields using setValue, and I can submit the form using submitForm or by clicking on the Submit button. However, there is some validation that has to run, and I need to use JavaScript to ensure that it runs properly. I tried using exec to run some commands but I do not think any of JavaScript is actually being run.

In order to test that theory I started trying very basic commands such as

exec alert('test')

or

exec console.log(1)

I see nothing in the console and no alert pops up when the test is run. How can I tell if the exec commands are working properly?

Environment Details:
OS of Test Agent: Win7 (x86)
Test Browser: Chrome (latest)

Thanks,
Noah