Unchecking and Asserting a Checkbox
Learn how to clear and assert a checkbox using Selenium.
Uncheck a checkbox
We can uncheck an already checked checkbox by using the following script:
the_checkbox = driver.findElement(By.name("vehicle_bike"));
the
...