Is there a way to verify the Color of an element by using Appium for Android/IOS app?

Hi,

Please let us know, whether we can verify the Color property of an element?

Note: The elements doesn’t have color attribute…!!!

Thanks & Regards,
Vijay Bhaskar.

Hope will get suggestions on this…

Thanks & Regards,
Vijay Bhaskar.

Have you tried verifying css properties for html.

@Venkatesh , this is possible only in case of WebApp or HybridApp (For web view) if app is native then you need to use other image comparison tools (ImageMagick/applitools eyes).

Thanks,
Priyank Shah

@Priyank_Shah I Agree

1 Like

:kissing_closed_eyes:

Hi @Priyank_Shah,

How can I integrate image comparison tools (ImageMagick/applitools eyes) effectively with Appium. Any reference links/ info about these tools available? Please let me know.

Thanks,
Bhaskar.

Hi,

By the way, we’ve a requirement for iOS app, need to verify elements color. :wink:

Are there any open source tools available? or Did anyone succeeded by only using Appium?

Regards,
Bhaskar.

You can refer https://github.com/uber/image-diff and hooked up to appium.

Take care because those things are not multi-device support. Take into account that those tools searches by pixel-by-pixel, so if the screen is bigger or smaller it will detect differences. Also if the language is different it will also detect differences.
I don’t know if it can be adjusted to match only in a concrete zone of the screen, but when I checked those tools I discarded the methods.