WebPagetest Forums
Script for user login - 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: Script for user login (/showthread.php?tid=13033)

Script for user login - zach - 06-13-2014 02:00 PM

I would to like to run a script based on user login.

Have tried the sample script which is given in the documentation phase of webpagetest, but am getting the error. Can someone please assist me with an example script?

Is the setcookie needs to be used along with the setvalue? if so how is that possible for gmail login scenario


RE: Script for user login - andydavies - 06-16-2014 04:33 AM

Here's one from a talk I did with Aarron Peters - http://www.slideshare.net/AndyDavies/web-page-test-beyond-the-basics/24

navigate https://zakelijk.vodafone.nl
setValue name=username xxxxxxxxxxxx
setValue name=password xxxxxxxxxxxx
submitForm name=login

I also quite often use execandwait to complete forms, click buttons etc.