TestProject Forum

Verify color of entered values

How to verify the color of text entered ?? in android mobile testing
There are some fields where if we enter various value for various ranges they have different color.
for value
0-Grey color
1-60–Red color
61-80-Green color
like this

Hello @tanvi.lohakare
If it is native context and a not a webview, you can ask the developers of the application to integrate some attribute that indicates the color range of the text for testing (the developers of the application has access to the text in runtime)
So then you can grab that attribute and validate it.

You can also use the Image comparison addon:
You take the screenshot of the element in various states using this action:

Then, take the screenshot of the element with the text, and compare it with the expected result image,
This can be done with one action: