How to test css features

How to Validate Css features. For example to test
Color of the element .

Hi Mahesh,

Depends on which library you are using?

If Browser library, you have Get Style which would be the easiest way.

You could also use something like Evaluate JavaScript or Execute Javascript to run the javascript function getComputedStyle on the page to compute the resultant CSS

Alternatively you could use Get Classes, Get Attribute, or Get Element Attribute to get the classes or style attributes from the element your interested in but some of these might only give you values directly applied to the element not values the element inherited which is why you’d be better using javascript to compute getComputedStyle or using BrowserLibrary’s Get Style which also computes the resultant style.

Hopefully one of those options will work for you,

Dave.

2 Likes