Question

2
Replies
78
Views
Robert Fleming (RobIsTheName)
RBC
Senior Manager, Process Automation
RBC
CA
RobIsTheName Member since 2017 31 posts
RBC
Posted: January 14, 2020
Last activity: January 20, 2020
Posted: 14 Jan 2020 17:32 EST
Last activity: 20 Jan 2020 1:53 EST
Closed

Selecting Radio buttons via an automation

so I have a web form with three radio buttons (labeled: Radio1, Radio2, RadioC)

I writing an automation to all calling projects to pass which option to press (along with other fields to populate on the form) Trying to make the call intuitive, the call looks something like:

PopulateForm

  • bool Radio1
  • bool Radio2
  • bool RadioC

Inside the function I have to figure which is the true item, ignoring the other two. The caller needs to pass all three, even though they are only interested in one of the three. I there a clean way to code this so we can pass one variable (not an index as no on will know what it means) to indicate which radio button to press...ex:

PopulateForm

(something) myRadioButtonToSelect

I thought about setting up an eNum in a script, but that has proved flaky at times... any suggestions are welcomed.... Rob....

Robotic Process Automation
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.