Hi, I tried to get the background color of this object using getCSSValue to be used in verifyEqual so that it detects whether the background color is green or red. But the output color in print(CL) is rgba(250, 250, 250, 1) or white (should be green or red depending on the object status).
hi kazurayam, while in Object Spy, I tried to copy the selector of the element that is pointed by the arrow, pasted it in the Selected Locator in “CSS”. The code now detects the background color of the object (red or green). I’ll let you know if i encounter some other issues regarding in this “background color”.
I understand you have solved your problem. Congrat!
However I saw you locator is terribly long. A long locator tends to break easily when the design of your page is modified in future. Then your test will fail, and you would be forced to rewrite the locator. This is an advanced issue. It would be your future subject.