wait - How to force driver to refresh (or throw timeoutException) after 5 seconds of upload page attempt? -



wait - How to force driver to refresh (or throw timeoutException) after 5 seconds of upload page attempt? -

i writing test cases using selenium web driver. need setup implicit wait chrome driver. don't need explicit-it long! there way forcefulness google chrome driver throw timeoutexception or (refresh page work) after 5 seconds of effort upload page.

i tried: driver.manage().timeouts().implicitlywait(5, timeunit.seconds);

it not work. here brief source code:

....... driver.manage().timeouts().implicitlywait(5, timeunit.seconds); ....... ....... element.click(); .......

now need driver throw timeoutexception if page not load within 5 seconds.

there easier way of doing it... not have on complicate code webdrivertimeouts etc...you can install chrome auto refresh plus on browser , take auto refresh after 5 seconds. every loop or whatever have, browser going provide 5 seconds finish it, otherwise going refresh page, want it. install auto refresh: https://chrome.google.com/webstore/detail/auto-refresh-plus/oilipfekkmncanaajkapbpancpelijih?hl=en

pc: implicit waits not doing chrome: http://www.google.com/url?sa=t&rct=j&q=implicit+waits+issue+chrome&source=web&cd=1&cad=rja&ved=0cc8qfjaa&url=http%3a%2f%2fcode.google.com%2fp%2fchromedriver%2fissues%2fdetail%3fid%3d24&ei=vz5huy6miys_rqh3zyfi&usg=afqjcnfar_7cz3e5njiyigrg_ftxclvuaq&sig2=jl7n0oh0usxbtxejovzbuw&bvm=bv.43828540,d.awm

driver wait

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -