You need to sign in to do that
Don't have an account?
LaurentDelcambre
"Request failed with status 400 due to element not interactable"
when I try to execute a .click() on it.
I also tried to change it to "type":"editable" and use the .press('Space') method but it did NOT select the input radio.
Any suggestion?
UTAM: how to test the selection of a radio button?
I am using UTAM to test an LWC app on Experience cloud site (Community)
I managed to test everything but I am struggling to test a selection of an input type=radio.
I tried to set it as "type": "clickable":
"name": "radioFalse", "public": true, "type": "clickable", "selector": { "css": "input[type='radio'][value='No']" }But I get a :
"Request failed with status 400 due to element not interactable"
when I try to execute a .click() on it.
I also tried to change it to "type":"editable" and use the .press('Space') method but it did NOT select the input radio.
Any suggestion?
I checked all relevant articles, and posts but couldn't find an exact answer. This appears to be more of UTAM side issue than core salesforces.
You can reach out to Test Automation Trailblazers page on https://trailhead.salesforce.com/trailblazer-community/topics/utam?sort=LAST_MODIFIED_DATE_DESC for better visibility and inputs on your ask.
Related:https://www.guru99.com/checkbox-and-radio-button-webdriver.html
https://developer.salesforce.com/blogs/2022/05/run-end-to-end-tests-with-the-ui-test-automation-model-utam
Hope this helps you.Thank you