Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

if driver.find_element_by_xpath selnium java is displayed

if(driver.findElement(By.xpath("/html/body/div[2]/div/div/div/div/div/div/table/tbody/tr[6]/td[2]")).isDisplayed())
{    
    driver.findElement(By.linkText("logout")).getAttribute("href");          
} else {          
    driver.findElement(By.xpath("/html/body/div/div/div/a[2]")).click();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #selnium #java #displayed
ADD COMMENT
Topic
Name
9+5 =