@@ -0,0 +1,834 @@
+/*%0A* Code to highlight a web element in Selenium.Makes use of Javascript to highlight.%0A* The underlying method is standalone and if you wish to use it a utility class of your own or something like that,%0A* You can go ahead and do that instead of having it inside a separate class.%0A*/%0A%0Aimport org.openqa.selenium.JavascriptExecutor;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.WebElement;%0A%0A%0Apublic class WebElementHighlighter %7B%0A  %0A  //Uses black colour.We can use any of the colours that Javascript recognizes.%0A%09public void highlightElement(WebDriver driver, WebElement element) %7B %0A%09%09for (int i = 0; i %3C 1; i++) %7B %0A%09%09%09JavascriptExecutor js = (JavascriptExecutor)driver;%0A%09%09%09 js.executeScript(%22arguments%5B0%5D.setAttribute('style', arguments%5B1%5D);%22, element, %22color: black; border: 3px solid black;%22); %0A%09%09%09 %0A%09%09%09 %7D%0A%09%09%7D%0A%0A%7D%0A

Create WebElementHighlighter.java