java - Am automating a webpage which take time to load a page on clicking a link. Tried implicit and explicit waits,it is not working.Any other suggestions? -
driver.findelement(by.xpath("xxxx")).click();
clicking on above link take page. take long time. while trying find element in resulting page shows error.
driver.findelement(by.xpath("yy")).gettext();
i have tried implicit , explicit waits, not working everytime.
use webdriver wait. put element need in 2nd page. feel free change locator in below code :-
webdriverwait wait = new webdriverwait(driver, 100); webelement element = wait.until(expectedconditions.elementtobeclickable(by.id("someid")));
hope :)
Comments
Post a Comment