Question

This is my code html :

<td class = "en" style = "background-color= #0000FF">

I now want to check the color in selenium:

Command: verifyAttribute

Target : style

Value  : background-color= #0000FF

After checking I get the answer: error-style not found

What am I doing wrong?

Was it helpful?

Solution

You missed wild card, Try :

command: verifyAttribute

Target : css=td#my_div@style

value  : *background-color= #0000FF*

Change your td to:

<td id="my_div" class = "en" style = "background-color= #0000FF">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top