How to check if the element is displayed in Appium?

//Selecting Element
MobileElement pElement = (MobileElement) driver.findElementByAccessibilityId("SomeAccessibilityID");
//Checking if it displayed on screen.
boolean isDisplayed = pElement.isDisplayed();

.

Leave a Reply

Your email address will not be published. Required fields are marked *