WebPagetest Forums

Full Version: Re : Login Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

In performance testing we would like to include login scenario also, hence have gone through the scripting document and tried the below script;

Ex :

navigate https://accounts.google.com/ServiceLogin...he=2&emr=1
setValue name=Email some username
setValue name=Passwd some password
submitForm name=signIn

Result :

Login was not successful, sometimes i can able to view the data entered in the input field[i.e; in username & password]. But login will not happening.

Hence could you please assist me with this asap. Can we have any interactive session? so that i can clarify further doubts too.

Thanks in Advance,
Zach
Your best bet would be to do the form filling and submit with javascript and use the exec and execAndWait commands. That way you can get the script working in a local dev console before submitting.

Odds are that there is some javascript that needs to run as part of the login form submission so the submitForm command isn't triggering the actual login.
Reference URL's