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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -