I have a text on the website that is green color. How can I verify in selenium ide that text is green? ( not any other color)
Asked
Active
Viewed 193 times
1
-
What have you tried so far? – Julia Aug 20 '20 at 16:50
-
I tried assert element present command with xpath and colpr code in target but it works regardless of what color I choose , so it wasnt right – Natalia Cupo Aug 20 '20 at 16:59
1 Answers
0
if your text have style attribute, or class, who define the green color you can use ccs selector directly...
see css selectors
Or you can use integrated selenium functions see here

temascal
- 28
- 4