mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/helpers/GeneralHelper.java
public static void highlightElement(WebElement element) 
    { 
        for (int i = 0; i < 2; i++) 
        { 
            JavascriptExecutor js = (JavascriptExecutor)WebDriverFactory.retrieveWebDriver(); 
            js.executeScript("arguments[0].setAttribute('style', arguments[1]);",
                    element, "color: yellow; border: 2px solid yellow;"); 
            js.executeScript("arguments[0].setAttribute('style', arguments[1]);", element, ""); 
        }
    }
/**
     * Debug method to highlight a given element to test whether the correct one is selected.
     * 
     * @param element
     *      element to highlight
     */
Debug method to highlight a given element to test whether the correct one is selected.

@param element
element to highlight
Debug method to highlight a given element to test whether the correct one is selected . @param element element to highlight
public static void highlightElement(WebElement element) 
    { 
        for (int i = 0; i < 2; i++) 
        { 
            JavascriptExecutor js = (JavascriptExecutor)WebDriverFactory.retrieveWebDriver(); 
            js.executeScript("arguments[0].setAttribute('style', arguments[1]);",
                    element, "color: yellow; border: 2px solid yellow;"); 
            js.executeScript("arguments[0].setAttribute('style', arguments[1]);", element, ""); 
        }
    }
public static void highlightElement ( WebElement element ) { for ( int i = 0 ; i < 2 ; i ++ ) { JavascriptExecutor js = ( JavascriptExecutor ) WebDriverFactory . retrieveWebDriver ( ) ; js . executeScript ( "arguments[0].setAttribute('style', arguments[1]);" , element , "color: yellow; border: 2px solid yellow;" ) ; js . executeScript ( "arguments[0].setAttribute('style', arguments[1]);" , element , "" ) ; } }
Debug method to highlight a given element to test whether the correct one is selected.
Debug method to highlight a given element to test whether the correct one is selected .