The first screenshot shows the UI with 4 buttons, with High being selected. From Appium inspector, there is no property that represents the state of the button.
What is the best way for me to assert which button is pressed and selected?
As per my understanding there is no way Appium can get us the state of element / css properties associated with it like a
text is under lined
color of an element
something like getcssValue() of selenium does not work because OF UIAutomator framework limitation.
for e.g.
driver.findElement(By.id(“someid”) ).getAttribute(“name”); // This works it corresponds to content-desc in android
But I want to read other attributes like below syntax does not work do we have any other way to read them from mobile DOM, may be by using UIAutomator classes UISelect etc