How to check if the element is displayed in Appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to check if the element is ...

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 *