How does pageload timeout in selenium webdriver work? Once set using
driver.manage().timeouts().pageLoadTimeout()
what is lifetime of the timeout?
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.
Sign up to join this communityEvery driver.manage().timeouts()
value lives till the instance of the driver is alive, be it the default value or a custom value set by the user.
So to answer your question- Once you set a driver.manage().timeouts().pageLoadTimeout()
value it will remain constant throughout the lifetime of your driver instance. If you want to change the value you will have to reset it.
Brief explanations on the waits here.
The default pageLoadTimeout()
is a member of Timeouts
interface which is set to never in wevdriver according to this. But, it is possible to overwrite. See here