Tag Info

Hot answers tagged

4

Try this line of code: Driver.findElement(By.xpath("enter your xpath")).click(); Hope it works out!


3

Try this Driver.SwitchTo().frame("Fancybox-frame"); Driver.findElement("enter your xpath to close popup").click(); Driver.SwitchTo().defaultContent();


1

If ID is shown on the page - it is shown as text in some element. Which has some locator. Find that element and get it's text or value property, as appropriate.



Only top voted, non community-wiki answers of a minimum length are eligible