Add a Radio Button Action

The radio button action interacts with a radio button, such as by selecting it, determining whether any radio buttons in a group are selected, or determining whether a specific radio button is selected.

Use Case

This action has specific requirements for the page's underlying HTML code. You can use this action only when a UI element has a tag name of INPUT and a type attribute of radio.

Add a Radio Button Action Using the Recorder

  1. Open the robot to edit.
  2. Start the recorder.
    1. On the canvas, select the action to record after.
    2. On the toolbar, select Record after the selected action Record after the selected action.
    3. In the panel, from the Select browser tab to target drop-down, select the application where the robot works. You might need to scroll to find it.

      If the application doesn't appear, close the panel, open the application in another tab, and start the recorder again.

      A splash screen appears, and the RPA Smart Recording panel appears.

    4. Select Begin Recording.

      The Smart Recording window appears in the lower-left corner of your browser. Additionally, your mouse cursor can now target elements in the user interface.

      The Smart Recording window says Targeting. The window contains two buttons: Pause and Stop

  3. Identify the radio button that the robot interacts with.
    1. Point to the radio button, but don't select it yet.

      For example, if the field is shaded purple and the magnifying lens icon appears, don't click yet. The recorder is still collecting information.

      A radio button is shaded purple, and a magnifying lens icon appears above it

    2. After the shading turns green, the icon changes to a target, and the mouse icon changes to a hand, select the UI element.

      A radio button is shaded green, and a target icon appears above it

      For more tips, see Quick Start for Building Robots.

      A panel appears with details about the element you selected.
    3. Review and update the fields as needed.
      • Name: Enter the name of the target. This text appears on the robot action in the canvas and in the list of targets in the robot.

        Your settings determine whether Oracle Integration reuses targets for previously selected UI controls. You can override these settings, if needed. Reusing a target offers benefits. For example, you can update a target one time, and all actions that use the target get the update.

      • Target name: Review the XML Path Language, or XPath, for the element that you selected. Underscores (_) appear in place of invalid characters. You can update the value, if you want.

      • Action: Select how the robot interacts with the radio button. See Operations for the Radio Button Action.

      The action that you select determines the other fields that appear.

    4. Provide values for the action that you selected.
      Action Fields to update

      Is Radio Button Selected

      • Save to: Specify where to save the answer about whether any radio buttons are selected. You have the following options:

        • Assign the value to a variable.

          1. Select the Output tab.

          2. Click within the Save to field, and select Variables Variables.

            The Variables panel appears.

          3. Determine whether the variable that you need appears in the list. If not, create it. See Create a Variable.

          4. Select the variable to assign the value to, and drag it to the Save to field.

        • Assign the value to a property of the output.

          1. Select the Output tab.

          2. Click within the Save to field, select More options, and then select Output Output.

            The Output panel appears.

          3. Determine whether the output that you need appears in the list. If not, create it. See Create a Trigger's Input or Output.

          4. Select the output to assign the value to, and drag it to the Save to field.

      Is Radio Button Set To

      • Value: Specify a radio button. The robot determines whether that specific option is selected. First, choose the radio button's label from the Set Value field, and then select Set Runtime value.

      • Test value: Optionally, specify a radio button. The recorder determines now whether that specific option is selected right now. First, choose the radio button's label from the Set Value field, and then select Set Runtime value.

      • Save to: Specify where to save the answer about whether a specific radio button is selected. You have the following options:

        • Assign the value to a variable.

          1. Select the Output tab.

          2. Click within the Save to field, and select Variables Variables.

            The Variables panel appears.

          3. Determine whether the variable that you need appears in the list. If not, create it. See Create a Variable.

          4. Select the variable to assign the value to, and drag it to the Save to field.

        • Assign the value to a property of the output.

          1. Select the Output tab.

          2. Click within the Save to field, select More options, and then select Output Output.

            The Output panel appears.

          3. Determine whether the output that you need appears in the list. If not, create it. See Create a Trigger's Input or Output.

          4. Select the output to assign the value to, and drag it to the Save to field.

      Select Radio Button

      • Value: Specify the radio button that must be selected. First, choose the radio button's label from the Set Value field, and then select Set Runtime value.

      • Test value: Specify the radio button that must be selected now, while you record. First, choose the radio button's label from the Set Value field, and then select Set Runtime value.

      If needed, you can choose different values for these fields.

    5. Select Save.
  4. Choose the appropriate next step:
    • Add another action using the recorder. See Add an Action to a Robot.

    • Pause the recorder so you can figure out your next steps. Select Pause Pause in the Smart Recording window in the lower-left corner of the browser.

    • Stop the recorder and return to the canvas. Select Stop Stop in the Smart Recording window in the lower-left corner of the browser.

      If you close the application that you're recording in, you can still stop the recorder. Select Stop Stop in the toolbar of the canvas.

    • Customize the action you just added, such as by creating validation or identifying the screenshots to capture. Stop the recording, double-click the action on the canvas, and update the action as needed. All actions are read-only until you stop the recorder.

  5. Above the canvas, select Save.

Add a Radio Button Action Using the Low-Code Tools

  1. Open the robot to edit.
  2. Add the action to the robot.
    1. On the canvas, point to an action, and click +.
      A mouse cursor points to an action in the canvas and hovers over the plus sign button, which appears at the bottom of the rectangle that represents the action. A plus sign button also appears at the top of the rectangle, for adding an action after the current action.

      A menu of available actions appears.

    2. Select Radio Button.

      A Radio Button action appears on the canvas, and the Radio Button panel appears.

  3. In the panel, enter a Name and Description for the action.

    The Name appears on the action in the canvas and should help you and others understand the goal of the action.

  4. From Operations, select how the robot interacts with the radio button.
  5. On the Input tab, specify details for the Value field, if it appears.

    If the operation that you selected requires you to target an individual radio button, the Value field appears on the Input tab.

    1. In another browser window or tab, open the application where the robot works.
    2. Right-click the radio button that the robot needs to interact with, and select Inspect.
    3. In the HTML code for the page, locate the id or the value of the radio button.
    4. Type the value for the id or value into the Value field in the robot.

      You don't need to format the value in a specific way. For example, if the id is choice1, type choice1.

  6. On the Input tab, specify details for the Group Name field.

    Every operation requires you to select the radio button group.

    1. In another browser window or tab, open the application where the robot works.

      If you opened the application already, you don't need to open it again.

    2. Right-click one the radio button group that the robot needs to interact with, and select Inspect.
    3. In the HTML code for the page, locate the name for the radio buttons in the radio button group.
    4. Type the value for the name into the Group Name field in the robot.
  7. On the Input tab, specify whether to capture any screenshots as part of the action.
  8. If the Output tab appears, specify where to save the radio button information from this action. You have the following options:
    • Assign the value to a variable. The value is a boolean value, indicating whether a radio button is selected.

      1. Click within the Save to field, and select Variables Variables.

        The Variables panel appears.

      2. Determine whether the variable that you need appears in the list. If not, create it. See Create a Variable. The variable must have a type of boolean.

      3. Select the variable to assign the value to, and drag it to the Save to field.

    • Assign the value to a property of the output. The value is a boolean value, indicating whether a radio button is selected.

      1. Click within the Save to field, select More options, and then select Output Output.

        The Output panel appears.

      2. Determine whether the output that you need appears in the list. If not, create it. See Create a Trigger's Input or Output. The property must have a type of boolean.

      3. Select the output to assign the value to, and drag it to the Save to field.

  9. On the Pre Validate and Post Validate tabs, specify whether to complete any validation before and after the action.
  10. Click OK.
  11. Above the canvas, select Save.

Operations for the Radio Button Action

Option Description

Is Radio Button Selected

Determine whether any radio buttons in a group are selected.

Is Radio Button Set To

Determine whether a specific radio button is selected.

Select Radio Button

Select a radio button.