Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 693
SystemicPlural Avatar asked Jan 10 '12 16:01

SystemicPlural


1 Answers

Worked it out:

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

The asterisk is a wild card.

like image 98
SystemicPlural Avatar answered Oct 14 '22 10:10

SystemicPlural