get(url)
is the method used to load web page in browser. But for that I coulnd't find out what is exact timeout for page load looking at here
If, in your case, page isn't loaded and timeout error is thrown then you can use pageLoadTimeout method.
Question
What is the default timeout that HtmlUnitDriver uses when waiting for a page to load?
Which functions in the HtmlUnitDriver API can I call to get the timeout value?
HtmlUnitDriver h = new HtmlUnitDriver();
I don't see any gettimeout function in the JavaDoc of WebDriver or HtmlUnitDriver.
Additionally, if this timeout is too short, how do I set a bigger timeout?
Solution 2
get(url)
is the method used to load web page in browser. But for that I coulnd't find out what is exact timeout for page load looking at here
If, in your case, page isn't loaded and timeout error is thrown then you can use pageLoadTimeout method.
OTHER TIPS
You can use pageLoadTimeout to set the timeout if you want.