Skip to content

How to get all radio groups from a page ? #1811

Answered by Al-Dani
AkshayJangid asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,
We do not provide a way to find an array of all specific components. What we suggest is to find required component using a selector.
You can assign a data-testid attribute to a radioGroup and use it as a selector in .findRadioGroup('[data-testid=radioGroup1]').

Hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Al-Dani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants