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
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?
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 @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.
It looks like you might be looking at the TextView object instead of the radio button itself. I believe you need to look for the actual clickable radio button. If the radio button does not have any unique identifiers then you can search for this TextView object and then look for a child or sibling object depending on the screen layout.
thanks for replying i tried to do custom xpath for mobile on different cases but it seems like doesn’t work the same way as the web , i posted a question here Mobile Custom XPATH locator ,any idea on how the xpath works on mobile?
I don’t have much experience with web but have used relative xpath locators on mobile before. I’ll copy my suggestion into the other thread too but based on the screenshot I believe you can achieve locating the desired object with this xpath:
//*[@class = ‘android.widget.TextView’ and (@text = ‘User ID’ or . = ‘User ID’)]/..//*[@class = 'android.widget.EditText']