How do i get text from selected radio button

Hi all! I need to get a text of a selected radio button on website.

image

I used “Get attribute” activity and in attribute i selected “selecteditem”. it pulls the text of the 1st radiobutton however the selection is on second radio button

how can i get the selected text?

Hi @elnur.isgandarov

Try to use Get Attribute with attribute “checked” on all radio buttons (via Find Children). Filter the one with “checked” = “true”, then use Get Text on its label element to get the selected radio button’s text.

If helpful, mark as solution. Happy automation with UiPath

hi Prashant - thanks for the help. i checked i cannot find “checked” attribute/ i tried just to write it but the get attribute activity throws an error

Try to find the connection between the radio button and its text.

You can easily determine which radio button is selected by checking its attribute, and then retrieve the text associated with it by making the selector dynamic as per the selected radio button.