1

How does pageload timeout in selenium webdriver work? Once set using

driver.manage().timeouts().pageLoadTimeout()

what is lifetime of the timeout?

1

Every 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.

0

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

  • 1
    yeah, but my question was different. If i set pageLoadTimeout to a value, is it set for lifetime of driver instance or just next command? – Neeraj Kumar Dec 15 '14 at 5:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.