SystemicPlural
SystemicPlural

Reputation: 5789

How to check if a style has been applied in Selenium IDE

I want to check if a particular style has been applied to an element. Preferably using the css selector.

EG:

...
<div id="my_div" style="display: block; background-color:#fff;">
    some content
</div>
...

How do I test that display is block regardless of the background color?

Upvotes: 5

Views: 7697

Answers (1)

SystemicPlural
SystemicPlural

Reputation: 5789

Worked it out:

command: assertAttribute or verifyAttribute
Target : css=#my_div@style
value : *display: block*

The asterisk is a wild card.

Upvotes: 11

Related Questions