How might you check the condition of a checkbox/radio button?
We can call the isSelected() strategy to test the status of these components.
Model Code:
boolean test = driver.findElement(By.xpath("checkbox/radio button XPath")).isSelected();