Katalon Mobile How To Verify Radio button is Checked or Not

Hi im trying to Verify Mobile Object whether it is checked or not using keyword
Mobile.verifyElementChecked but the object captured with the following attributes
image

i tried capturing the radio button when it is checked but the attributes is still the same (like the above) , im assuming the attributes ‘checked’ or ‘selected’ is the indicator for checked button ? What else can be done to verify radio button is checked or not?

1 Like

Hi there, :wave:

Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.

In the meantime, you can double-check your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out this posting guide to help us help you better!

Thanks! :sunglasses:
Katalon Community team

How about trying to see if the attribute becomes checked after clicking on the radio button? Maybe like:

Mobile.checkElement(findTestObject('...'))

Mobile.verifyElementChecked(findTestObject('...'), 10)
or
Mobile.verifyElementHasAttribute(findTestObject('...'), 'checked', 10)

Edit: And you could also do:

Mobile.verifyElementAttributeValue(findTestObject('...'), 'checked', 'true', 10)
1 Like

Thanks @grylion54 thanks for the solution but however all the attributes whether the radio button is checked or not checked its the same no difference (i mean the name: checked value: false) no value captured as true when the radio button is clicked upon.