How to check if an element is visible with WebDriver
WebDriver from Selenium 2.0a2 I am having trouble checking if an element is visible.
WebDriver.findElement returns a
WebElement, which unfortunately doesn’t offer an
isVisible method. I can go around this by using
WebElement.click both of which throw an
ElementNotVisibleException, but this feels very dirty.
Any better ideas?
- You must login to post comments