Selenium: How to select checkbox if not selected using WebDriver

Last updated on:

if ( !driver.findElement(By.id("idOfTheElement")).isSelected() )
{
     driver.findElement(By.id("idOfTheElement")).click();
}
View Comments
This comment thread is closed. If you have important information to share, you can always contact me.