mercredi 19 juillet 2017

Appium Program crash on isDisplayed

I am trying to check the visibility of a hidden element in my UI. When the element is on the screen, isDisplayed returns true. Else, When the element is not visible on the screen and is hidden, my Program crashes on isDisplayed.

Assert.assertTrue(driver.findElement(By.id("com.appiumdemoapp:id/btnInvisible")).isDisplayed());

Aucun commentaire:

Enregistrer un commentaire