How to check if an element is selected in Appium?


MobileElement pElement = (MobileElement) driver.findElementByAccessibilityId("Any Access Id");
//Check if element is selected.
boolean isSelected = pElement.isSelected();

Leave a Reply

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