Skip to main content

In selenium we usually use isSelected() method to check if the checkbox is selected or not.

For Salesforce checkboxes I am not able to do that. 

Here is the HTML when checkbox is checked 

How do I verify If the checkbox is selected or not ?

Here is the HTML when Checkbox is not checked

 

NotChecked.JPG

 

Can some one help me how to do this ? #Salesforce Developer

14 respuestas
  1. 31 ene 2022, 08:57

    Glad to here you could get it to work for you as well, @David Cox. In some tests I looked at, I also got these rather odd return values.

0/9000