WebPagetest Forums
Scripting for authenticated pages - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: Scripting for authenticated pages (/showthread.php?tid=13895)

Scripting for authenticated pages - Uday13 - 09-02-2015 12:30 PM

I am trying to create a script to test the authenticated pages. While using the DOM Elements/attributes for clicking the submit/continue buttons we ran into some code issues. Wondering if there is a way to mimic the enter key feature from the keyboard using the script. We need this for Chrome browser. Below is the script with dummy values:

logData 0

// bring up the login screen
navigate https://www.test.com

logData 1

// log in
setValue name=publicUserId test1234
clickAndWait btn_continue

RE: Scripting for authenticated pages - pmeenan - 09-03-2015 10:01 PM

Your best bet is to use javascript and the execAndWait command (instead of clickAndWait). That way you can get it working locally in a browser console and do your debugging there before submitting.