I am having trouble detecting the presence of the "checked" attribute on a radio button.
Here are the two radio buttons in question: Radio Buttons
These are the attributes of the elements:
<input type="radio" ng-change="logConsent(true)" ng-model="xxxConsent" value="true" id="xx_Summary_Radio_Consent_Yes" name="consent" class="ng-valid ng-dirty">
and
<input type="radio" ng-change="logConsent(false)" ng-model="x2Consent" value="false" id="x2_Summary_Radio_Consent_No" name="consent" class="ng-valid ng-dirty">
When using Selenium webdriver, element.attribute('checked')
always returns nil. I am unsure of how to determine if these radio buttons are checked or enabled. I attempted to monitor changes through Chrome inspect, but the attributes remained the same before and after checking the radio buttons. Can anyone assist me in verifying this?
To moderators and users: I have not been able to find relevant information related to my radio button issue on StackOverflow despite numerous similar questions. That is why I am posting a separate inquiry.