Get css values

1 reply [Last post]
seemak
Offline
Joined: 02/07/2017

Hi,
How can we get text color, background color and font size for all types of applications : native, web.
It is required for both Android and iOS.
Please suggest a solution for same.

arundoss
Offline
Joined: 02/04/2015

Hi,

You can use the HybridRunJavascript command to run a custom script on the HTML document and verify properties such as font size, color and type:

https://docs.experitest.com/display/public/TD/SeeTestAutomation-+HybridR...

http://stackoverflow.com/questions/15195209/how-to-get-font-size-in-html

NOTE: since this is running in html, this same command should work for both android and iOS devices.