There
are certain situations in the project where we need to validate the background
color, color or font of the particular web-element of our application.
For that purpose, we can use the getCSSValue of the web element.
For example, in the below scenario I am validating the Color, background color and the font size of google logo placed on their home page.
Output of above code execution is:
Here
getCSSValue(“color”) and getCssValue("background-color") will always
return value as RGBA (Red,Green,Blue and Amber) format.
All
this color combinations can be checked using below link.
Nice
ReplyThanks Ankur, this blog is very good ,attractive and clear text style .
Reply