I am using Selenium 2. I have loaded the page using Get command in WebDriver class which is in the package org.openqa.selenium. My question is that what is Selenium's default timeout for page loading?
|
|
The default WebDriver setting for timeouts is never. WebDriver will sit there forever waiting for the page to load. The following timeouts are available:
You can tweak the timeouts by setting driver.manage().timeouts().pageLoadTimeout() More information here: |
|||||||
|
|
Welcome to SQA, saikrishna. According to http://stackoverflow.com/a/5504375/100464, the timeout is 30 seconds. |
|||
|
There is no timeout, as others have said. However, the ImplicitlyWait() that has been suggested is actually for page elements to appear. For page loading you want to set the "page load" timeout instead. This will then interrupt your get() call after that many milliseconds. If you're using Java, you use setScriptTimeout(). If using PHP I added this function to the end of WebDriver.php and it works for me:
Reference: http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/timeouts |
|||
|
|