- Using Robots in Oracle Integration 3
- Build a Robot
- Add an Action to a Robot
- Add a Radio Button Action
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
- Open the robot to edit.
See Open a Robot.
- Start the
recorder.
- On the canvas, select the action to record after.
- On the toolbar, select Record after the selected
action
.
- 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.
- 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.
- Identify the radio button that the robot interacts with.
- 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.
- After the
shading turns green, the icon changes to a target, and the mouse icon changes to a hand,
select the UI element.
For more tips, see Quick Start for Building Robots.
A panel appears with details about the element you selected. - 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.
-
- 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.
-
Select the Output tab.
-
Click within the Save to field, and select Variables
.
The Variables panel appears.
-
Determine whether the variable that you need appears in the list. If not, create it. See Create a Variable.
-
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.
-
Select the Output tab.
-
Click within the Save to field, select More options, and then select
Output.
The Output panel appears.
-
Determine whether the output that you need appears in the list. If not, create it. See Create a Trigger's Input or Output.
-
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.
-
Select the Output tab.
-
Click within the Save to field, and select Variables
.
The Variables panel appears.
-
Determine whether the variable that you need appears in the list. If not, create it. See Create a Variable.
-
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.
-
Select the Output tab.
-
Click within the Save to field, select More options, and then select
Output.
The Output panel appears.
-
Determine whether the output that you need appears in the list. If not, create it. See Create a Trigger's Input or Output.
-
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.
-
- Select Save.
- Point to the radio button, but don't select it yet.
- 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
in the Smart Recording window in the lower-left corner of the browser.
-
Stop the recorder and return to the canvas. Select 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
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.
-
- Above the canvas, select Save.
Add a Radio Button Action Using the Low-Code Tools
- Open the robot to edit.
See Open a Robot.
- Add the action
to the robot.
- On the canvas,
point to an action, and click
+.
A menu of available actions appears.
- Select Radio Button.
A Radio Button action appears on the canvas, and the Radio Button panel appears.
- On the canvas,
point to an action, and click
+.
- 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.
- From Operations, select how the robot interacts with the radio button.
- 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.
- In another browser window or tab, open the application where the robot works.
- Right-click the radio button that the robot needs to interact with, and select Inspect.
- In the HTML code for the page, locate the
id
or thevalue
of the radio button. - Type the value for the
id
orvalue
into the Value field in the robot.You don't need to format the value in a specific way. For example, if the
id
ischoice1
, typechoice1
.
- On the Input tab, specify details for the
Group Name field.
Every operation requires you to select the radio button group.
- 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.
- Right-click one the radio button group that the robot needs to interact with, and select Inspect.
- In the HTML code for the page, locate the
name
for the radio buttons in the radio button group. - Type the value for the
name
into the Group Name field in the robot.
- In
another browser window or tab, open the application where the robot works.
- On the Input tab, specify whether to capture any screenshots as part of the action.
- 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.
-
Click within the Save to field, and select Variables
.
The Variables panel appears.
-
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.
-
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.
-
Click within the Save to field, select More options, and then select
Output.
The Output panel appears.
-
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.
-
Select the output to assign the value to, and drag it to the Save to field.
-
-
- On the Pre Validate and Post Validate tabs, specify whether to complete any validation before and after the action.
- Click OK.
- Above the canvas, select Save.