WebPagetest Forums

Full Version: Scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I am trying to find the metrics for a game page in games.yahoo.com for a signed-in user. The test does not return any results.
it would be of great help if you assist me in doing this

Steps:
1.Go to http://games.yahoo.com/game/vegas-world-...EAyCLUwOZ_
2.Click on "Play" button
3.Enter login credentials and signin

Page will navigate to http://games.yahoo.com/game/vegas-world-..._(signedin view).


Script written by me for above:
logData 0

// put any urls you want to navigate
logData 0
navigate http://games.yahoo.com/game/vegas-world-...EAyCLUwOZ_
clickAndWait innerText=play
setValue id=username karen.test45
setValue id=passwd testing
submitForm localName=button
logData 1


// this step will get recorded
navigate http://games.yahoo.com/game/vegas-world-...EAyCLUwOZ_
i would suggest you to put sleep for 10seconds after you submitForm

logData 0
navigate http://games.yahoo.com/game/vegas-world-...EAyCLUwOZ_
clickAndWait innerText=play
setValue id=username karen.test45
setValue id=passwd testing
submitForm localName=button
Sleep 10
logData 1
Reference URL's