MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Error at navigate command in wptdriver

WebPagetest Forums

Full Version: Error at navigate command in wptdriver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The "navigate" command in wptdriver doesn't work corretly anymore. Commands located after the navigate command are executed before the navigate command finished execution.

I tested the following script at the online instance:
combineSteps
navigate http://www.webpagetest.org
navigate http://www.google.de

Here are the results for the different browsers
IE 8: http://www.webpagetest.org/result/130829...1/details/ (right result, presumably URLblast)
Firefox: http://www.webpagetest.org/result/130829...1/details/ (wrong result, just http://www.google.de has been opened)
Chrome: http://www.webpagetest.org/result/130829...1/details/ (wrong result, just http://www.google.de has been opened)

At firefox and chrome the wptdriver didn't wait for the successful execution of the navigate command. Thus, only the second navigate command is executed. I also noticed the same behaviour on a local instance where i measured internet explorer with wptdriver. Seems to be an wptdriver issue.
Inserting "sleep 1" to the script fixes the problem but shouldn't be necessary after a navigate.

New script:
combineSteps
navigate http://www.webpagetest.org
sleep 1
navigate http://www.google.de
Argh - I thought I saw something broken when I was looking at that code the other day - will get it fixed today.
Fixed, sorry about that: http://www.webpagetest.org/result/130829_F4_QST/ (though it looks like Miami needs to be rebooted to fix the video capture)
It's working. Thank you for the quick fix.
Reference URL's