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();
Posted on May 15, 2019
By Shah Nawaz
MobileElement pElement = (MobileElement) driver.findElementByAccessibilityId("Any Access Id");
//Check if element is selected.
boolean isSelected = pElement.isSelected();
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Privacy Policy
Accept