Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

hide element selenium

public void hideElement(String xpath)
{
    WebElement element = driver.findElement(By.xpath(xpath));       
    ((JavascriptExecutor)driver).executeScript("arguments[0].style.visibility='hidden'", element);
}
Source by qaftw.wordpress.com #
 
PREVIOUS NEXT
Tagged: #hide #element #selenium
ADD COMMENT
Topic
Name
7+8 =