Logical Radio button selection


I’m using a Click Activity to select a radio button with numerical values.

Can someone help me select a 1 in the radio button if the day of the week is Tuesday - Friday.

Select a 3 in the radio button if the day of the week is Monday.

Any help would be greatly appreciated.



Hi @timothy.mullady

I am not sure about the html structure of the radio button,

You can use an if condition with condition as


If this is True, then use click activity to select the radio button for the value 3


use click elemnt to select the radio button of value 1


Hope theee steps would help you resolve this

— use a assign activity like this

str_day = If(Datetime.Now.Dayofweek.ToString.ToUpper.Equals(“MONDAY”), “3”, If(Datetime.Now.Dayofweek.ToString.ToUpper.Equals(“SUNDAY”) and Datetime.Now.Dayofweek.ToString.ToUpper.Equals(“SATURDAY”),String.Empty,”1”))

This expression will assign string value to str_day based on the condition that if it is between Tuesday - Friday then value “1” will be assigned
If the dayofweek is Monday then “3” will be assigned to str_day

Or empty value will be assigned to str_day if it is Sunday or Saturday

Then this str_day string variable can be used in the attribute along selector of click activity to click that radio button

Hope this would help you

Cheers @timothy.mullady

Hi @timothy.mullady,

If you want to achieve this from Invoke code then refer below test file.

Test.xaml (6.7 KB)

Hi ,

Please find the attached workflow. let me know if you need further information.Radio Button.xaml (10.0 KB)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.