Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Wedriver pageload timeout #3874
adds support of pageload_timeout config to WebDriver
the amount of time to wait for a page load to complete before throwing an error
This patch allows to reduce issues from phantomjs random freezing, especially within CI environment
patch based on suggestion from ariya/phantomjs#11526 (comment)
Since 2.2.8 my tests stopped running with the following error:
So I suppose there is no default for this setting? I added this config setting as pageload_timeout: 0, but the tests now fail, with a timeout exception:
Only when I set pageload_timeout to some higher value (I used 5) my test can run again.
So for me the problem is now solved but I do not think setting this config option should be forced this way.
according to source - https://github.com/Codeception/Codeception/blob/2.2.8/src/Codeception/Module/WebDriver.php if you have not set pageload_timeout then it's ignored (your tests may call WebDriver directly though, so you probably should grep over your 'tests' directory to be sure if some helper doesn't help here)
hm, it seems like chrome sees 0 as no timeout at all
you probably may use 30 to avoid possible interference of slow running remote test servers