5

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?

Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509
SystemicPlural
  • 5,629
  • 9
  • 49
  • 74

1 Answers1

11

Worked it out:

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

The asterisk is a wild card.

SystemicPlural
  • 5,629
  • 9
  • 49
  • 74