Answer is YES!!
|I want to highlight object in selenium|
Why we use Highlight?
Highlight plays crucial role in debugging of test script. One way to know steps being performed in browser is to highlight the web page elements.
How is it possible?
Example:- We can simply change the the backgroundColor/border of the specified element yellow.(Like we see on clicking Find button in Selenium IDE).
In Selenium RC we had a dedicated command for the same.
Don’t be afraid from the messy code, lets try to understand it ,
Arguments.style.border:– this script is injecting the CSS style tag into the element , and making its border settings with a 2px wide green line with groove look.
Element :- This is the element around which border will be drawn.
We can also try the following code also :-