Answers

Question and Answer:

  Home  Automation

⟩ Do you know how to verify if the checkbox/radio is checked or not?

isSelected() method is used to verify if the checkbox/radio is checked or not. An example -

driver.findElement(By.xpath("XPath of the checkbox/radio button")).isSelected();

 164 views

More Questions for you: