Script works locally, not on agent

I am struggling with a script that works in the local desktop plugin (as downloaded from https://webpagetest.googlecode.com/files/Pagetest_325.msi) but fails when i submit it through our private instance UI (it doesn’t get through the login part). I’m manually testing the script on one of our agents! So running it manually on the agent works, but running it through UI doesn’t … whatup?

Script:

[size=small][font=Courier]
logData 0
navigate https://www.godaddy.com
clickAndWait innerText=Sign In
setValue id=loginname
setValue id=password
submitForm id=loginForm
logData 1
navigate https://app7.websitetonight.com/designer?regionsite=www&account_Uid=e1fae346-3bc2-11e1-aa24-00219ba60aac&common_name=wst-gomez9.com&marketid=en-US
[/font][/size]

Notes:

  • The part before logData 1 is just to login and set a session cookie, auth token, etc.
  • i took pagetest.dll from the latest agent (v2.14.0.378) and copied it over the 325 version that came with the above mentioned download
  • I have tried ‘exec’ and ‘execAndWait’ in place of the ‘setValue’ and ‘submitForm’ commands but all fail

Could this have anything to do with the format of the script? TABs vs. spaces? What am i missing?

Any help would be much appreciated!

Greetings

You’re missing a little bit of info, such as what browser you’re using, but, regardless, a couple of things to try:

Yes, the delimiters should be Tabs not Spaces.

I entered a slightly modified version of your script (as written) on my local instance:

logData 0
navigate https://www.godaddy.com
click innerHTML=Sign In
sleep 5
setValue id=loginname
setValue id=password
submitForm id=loginForm
logData 1

Under IE9, 10 and 11. On IE9 and 10, it brought me to the invalid name/password prompt (which was expected). Under IE11 I’m getting some sort of popup that closes too fast for me to read. That might just be an issue unique to my system, though.

Anyway, play with the script this way just to see if you can get it to proceed to your page. Then you can fine-tune it a bit after that.

Hope it helps a little.

Robert

Hey RLilly! Thx for your response!
You’re right, i should mentioned that i have been testing this with both IE11 and Chrome. On the local agent, i tested it in IE11 using pagetest plugin and it completes without any issues …

Your script is a no-go for me … it just gets stuck. Here is the log:

2014/09/26 17:00:17 - Test Created
2014/09/26 17:00:17 - Starting test (initiated by tester )
2014/09/26 17:08:53 - Test Run Complete. Run: 1, Cached: 0, Done: , Tester:

Notice the 8 minutes of … nothing …

i tried your script locally on one of my agents, using the pagetest plugin in IE and it worked perfectly!

That’s the part that i don’t get - why does it work locally using pagetest but not when submitted via wpt?

thanks for the help!

Huh… odd. Are you using a private/local instance of WPT or the public one? I was testing against a private instance. If you’re using the public one, just to try something that will get a result, change the top logData parm to a ‘1’. ie:

logData 1
navigate https://www.godaddy.com
click innerHTML=Sign In
sleep 5
setValue id=loginname
setValue id=password
submitForm id=loginForm

When I did that on the public site, I ended up with this:

Give it a try with the correct info loaded. Following the filmstrip might help track down what’s going on. It might also be worth noting that on a few of the tests, the login screen presented a Captcha challenge. Any chance you’re bumping up against that when running the wpt version test? If it’s not completing the login, that would explain the 8min timeout with no data reporting. Changing the logData value should let you see that.

Update: Actually, looks like I overlooked the fact that you were testing with IE11. In testing with that, I’m also experiencing a fail condition. In watching what happens, the script pulls down the login panel but doesn’t seem to be able to populate the name and pw boxes. Haven’t had time to try and figure out what’s going on just yet.

Robert