Can anybody help me out? I have an app which displays a popup as soon as the app (url) is launched. The popup contains images, text, checkbox and button. I can able to locate the checkbox and button using firebug but when I use the same in code to handle that, it get fails and throws an error as follows:
org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"**//div[@class='modal-dialog']/div/div/button[@type='button']/span[text()]**"}
I have tried with ways as follows
- Alert-- but it is telling that not an alert
- Frame--
driver.switchTo().frame(0)
is passed but after that the same error as above described - XPath-- no use same error as above.
Note: It is an ecommerce app. Can anybody please help me out.