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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -