How do I change the default request timeout for Selenium 2?

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-04-06T05:56:32Z Indexed on 2010/04/06 6:03 UTC
Read the original article Hit count: 399

Filed under:
|
|

I am currently using Selenium 2.0a2 in Java to access the Internet using an HtmlUnitDriver instance. The problem I am facing is that, when I attempt to access slow websites, the request times out. How can I increase the time that WebDriver waits before throwing a timeout exception?

© Stack Overflow or respective owner

Related posts about selenium

Related posts about webdriver