문제

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?

도움이 되었습니까?

해결책

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">
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top