Selenium: WebDriver check if element is displayed on screen

Trabla: Selenium: WebDriver check if element is displayed on screen

Solving: 

 if ( driver.findElement( By.className("waiting_dialog") ).isDisplayed() == true  ){

     // Hooray !!! Element is dispayed

 }else{
   
    // Oops, Element is NOT  dispayed
}

No comments:

Post a Comment