[Solved] How to check Checkbox is already checked or not on edit page [duplicate]


isSelected() doesn’t work on LABEL tags, only INPUTs. The INPUT is in the HTML you posted.

boolean sandboxClientCheckbox = driver.findElement(By.id("acChkSandboxClient")).isSelected();

5

solved How to check Checkbox is already checked or not on edit page [duplicate]