How to verify the element's text style in a Native App

Hi,

Using Java + Selenium we can verify the text property or the style of an element by using getCssValue(String) method.
Example given in this article: https://appium.readthedocs.io/en/stable/en/commands/element/attributes/css-property/
// Java
List element = (MobileElement) driver.findElementById(“SomeId”);
String cssProperty = element.getCssValue(“style”);

However, how can we get the text style of an element when it is present in a Native App?? Is there a solution for this issue? Is anybody working on solving this issue?

Thank you.

1 Like