I can locate the checkbox using xPath but cannot verify if this checkbox is selected using the isSelected() method.
I'm using the xPath as
//div[@class='Form-field Form-field--spacer']//label[@for='RememberMe']
.
I need to first verify if the checkbox is selected
I tried to verify it using the isSelected() method, but there is no success with it.