WebPagetest Forums
Need help understanding how this works - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Need help understanding how this works (/showthread.php?tid=10764)



Need help understanding how this works - amiwebguy - 03-17-2012 07:12 AM

Love the site, but new to the scripting portion.
Could use some help getting started please?
Do I have to use setDOMElement?

Trying to go to a site (navigate) then set the value of form inputs (setValue) and then submit it (clickAndWait).
Then I actually want the test results to be for the next page that was posted to.

logData 0

navigate http://www.mysite.com

setValue name=textbox1 Jane
setValue name=textbox2 Doe

clickAndWait innerText=Send

Thanks,

Justin


RE: Need help understanding how this works - pmeenan - 03-20-2012 12:18 AM

close, you just need to turn data capture back on before the step you want to measure:

logData 0
navigate http://www.mysite.com
logData 1

setValue name=textbox1 Jane
setValue name=textbox2 Doe

clickAndWait innerText=Send