Highlight Element and Disable Highlight using JSExecutor
((JavascriptExecutor) driver).executeScript("arguments[0].setAttribute('style', arguments[1]);", element,"color: yellow; border: 5px solid red;");
((JavascriptExecutor) driver).executeScript("arguments[0].setAttribute('style', arguments[1]);", element,"");
No comments:
Post a Comment