Hot answers tagged selenium2
Try this line of code: Driver.findElement(By.xpath("enter your xpath")).click(); Hope it works out!
Try this Driver.SwitchTo().frame("Fancybox-frame"); Driver.findElement("enter your xpath to close popup").click(); Driver.SwitchTo().defaultContent();
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