element instanceof RenderedWebElement
Works, but I still find this a bit annoying. I wonder what the reasoning is for not offering an WebElement.isDisplayed.
This is not working but this interface delegates method isDisplayed and it works. Thanks for the hint. (+1)
Is this still relevant for selenium 2.0? I don't think there is a need for RenderedWebElement (the class itself is gone).
@Eugen I think it has been changed to RemoteWebElement. But yeah as @sleske wrote WebElement.isDisplayed is now available and it probably will work in this use case (I don't have that code available anymore so cannot test).
For real? The question is about specific version of Selenium (2.0a2). So, using isDisplayed() is not a correct answer for the version in question.