java - Webdriver does not timeout despite of timeout set -


i have set timeouts in webdriver follows:

driver.manage().timeouts().pageloadtimeout(timeoutseconds, timeunit.seconds); driver.manage().timeouts().setscripttimeout(timeoutseconds, timeunit.seconds); 

but webdriver gets stuck on "transfering data somewebsite.somedomain.com..." , not throw timeout exception.

why happening , how rid of situation?

i using selenium webdriver version 2.45.0

hi try if explicit wait works, ie: load\navigate page, , use explicit wait on of ui object on page. like:

    webelement mydynamicelement = (new webdriverwait(driver, 25))                     .until(expectedconditions.presenceofelementlocated("by locator"))); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -