Tag Info

Hot answers tagged


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.


We are using Xvfb in our Continuous Integration environment and it is working great. It's no problem to take screenshots from Selenium for later analysis when errors are found. We have found no problems with this solution, rather a great advantage to be able to use virtual servers to spawn massively parallel tests against installations of the software.

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