18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
color coding
Hi All
Can any one help me in how to indentify different colors using sahi.
with Regards
priya
Can any one help me in how to indentify different colors using sahi.
with Regards
priya
Comments
Please see this example if it helps:
_style(_byId("yourID"), "color");
gives the font color of the text. This is how I use it to validate colors of various text: Hope this helps.
Regards,
Pankaj.
Thanks for the responce. Actually i need to retrieve the colour of the image , through which property i can retrieve the color of that image. In the Properties of the image i could't find any property releated to the color
With Regards
Priya
I am not sure if we can check the color of an image . But ya there can be some way of checking the color of the pixels on the screen where your image is located. lets see what Narayan or others suggest