I am trying to check that my checkbox #15-check1 is selected but the usual .verify.elementPresent('#15-check1:checked') is not working (even though I can see that the correct checkbox is selected) 😕
Note: I was unable to check the checkbox using the usual .click('#15-check1') and as per the advice in #362, I had to use .click('label[for="15-check1"]') instead
I do not have this problem with any other checkboxes (not inside labels).
It appears that selenium prevents inputs inside labels from being accessed by simple css selectors (e.g. in https://github.com/nightwatchjs/nightwatch/issues/362).
I am trying to check that my checkbox
#15-check1
is selected but the usual.verify.elementPresent('#15-check1:checked')
is not working (even though I can see that the correct checkbox is selected) 😕Note: I was unable to check the checkbox using the usual
.click('#15-check1')
and as per the advice in #362, I had to use.click('label[for="15-check1"]')
insteadI do not have this problem with any other checkboxes (not inside labels).
Any help with this would be wonderful! Thanks 🙏