Open GoogleCodeExporter opened 8 years ago
You can use WebElement#isDisplayed() to check if the element is shown or not.
Could you check the visibility in your test code?
WebElement element = driver.findElementByText("SOME_TEXT");
assertFalse(element.isDisplayed());
Original comment by tka...@google.com
on 26 Jul 2011 at 1:41
Thanks for the suggestion.
However, it seems that isDisplayed is not on the org.openqa.selenium.WebElement
interface.
Original comment by davincid...@gmail.com
on 26 Jul 2011 at 4:37
Oh, sorry. It'a bug.
AndroidNativeElement should extend
org.openqa.selenium.remote.RenderedRemoteWebElement rather than
RemoteWebElement, and you will be able to use
AndroidNativeElement#isDisplayed().
Original comment by tka...@google.com
on 27 Jul 2011 at 1:41
Original issue reported on code.google.com by
davincid...@gmail.com
on 25 Jul 2011 at 7:32