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?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
The following timeouts are available:
You can tweak the timeouts by setting
More information here:
Welcome to SQA, saikrishna. According to http://stackoverflow.com/a/5504375/100464, the timeout is 30 seconds.
Apparently there is a timeout. It is 30 minutes long.
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: