RadioButton Fetching the whole value Error

Hi,

I am supposed to get the radio button activated value, i am using get attribute activity, i am selecting the the UiElement of both yes and no together, and i am giving the “aaname” as attribute in the properties, but i am getting “Yes No” as output value, how do i get the only radio button clicked value, if nothing is clicked between them , it should return blank value, i have added the attachment for reference.

yesornoselectorr

Refresh the page take the selector of the same with radio button on yes now check what is the value of idx
Do the same while radio button in on no

And send the idx value

Remember to refresh the page before getting the selector

1 Like

3

Idx value is not changing even if i refresh it n times, i tried to send the idx value in the attribute property, its returning the blank value

Fine while selecting element from get attribute activity we can select any one radio button and check for its value whether it is enabled or not
Is there any reason to select them both together
If not any such we can select the yes radio button alone check for the aastate or Aanand attribute
Cheers @Santhosh_Hyd

1 Like

i want to get the clicked value, thats y i am selecting both at a time,if i select one at a time and send “aaname” in the property , its jus returning the “Yes” or “No” even if it is not clicked, if i can check the radio button active status one at a time also fine for me, can you share a sample workflow how to do it?

1 Like

You can use “Get Attribute” Activity, indicate the selector to one of the radio button “Yes or No” say “Yes”. In the activity where you enter text, from the dropdown select “checked”. If the value of “checked” is true that means “Yes” is selected.
You can do the same to check if “No” is selected.

1 Like

Fine
Then we can use get attribute as suggested by @Anmol_Yadav (Shubhi - welcome to uipath community) and select the individual element as selector and try to get the value of checked attribute whether it’s yes or no which would tell you it’s value which one is selected

Hope would help you

Cheers @Santhosh_Hyd

1 Like

Thanks for the reply, both of u, i tried with ur suggestion, but i got an error , please check the imageopcofinal

Try using IE and not chrome. Also, when indicating on screen for selector, indicate on the radio button not the whole text as well.
Um, can you show the selector?

Hi Shubhi, i am using IE only, i tried with all three cases, first whole UiElement, , then Yes only, and then No only, above one is for NO, i pasted the selectors above, please check.in each case, i am getting the same error, do i have to change anything in the selector or properties?

Using UIExplorer, check whether this selector is valid or not. Try getting a selector from UiExplorer.
Or if you can share where you are trying, i can help better.

1 Like

Check this.

its giving the click on radio button while i want to fetch the value or get the status of the radio button

1 Like

I have created an activity to get the value of the radio button. would you like to have look?
it worked for me can upload if you want

1 Like

please do it…