java - Unable to click on pop up screen -
after entering values few fields click on submit button produces pop screen should click go button. tried below code, worked once not working now. please help
webdriverwait wait = new webdriverwait(driver, 6); wait.until(expectedconditions.visibilityofelementlocated(by.xpath(".//*[@id='lets_go']"))); driver.findelement(by.xpath(".//*[@id='lets_go']")).click();
how fix ?
if it's alert use:
driver.switchto().alert().accept().
if pop window, first switch window using windowhandler, click on element
Comments
Post a Comment