private void setTimeoutOnSelenium ( ) { executeCommand ( "setTimeout" , new String [ ] { "" + this . timeout } ) ; WebDriver . Timeouts timeouts = getWebDriver ( ) . manage ( ) . timeouts ( ) ; timeouts . setScriptTimeout ( this . timeout , TimeUnit . MILLISECONDS ) ; timeouts . pageLoadTimeout ( this . timeout , TimeUnit . MILLISECONDS ) ; }
Set the default timeout on the selenium instance .