Pre-General Availability: 2024-09-02
Add a Define Web Table Action
The define web table action allows you to identify the columns in a table that you are interested in. After you add a define web table action, you can add more actions, depending on the work that the robot needs to complete for the table.
Use Case
Consider a table that contains invoice numbers in one column and a hyperlink in another column. You can add a get text action to get the invoice numbers and a click element action to click the link. Use a foreach loop to iterate on multiple rows of data.
You can use the read data table action only for a UI element that is
coded as a table
.
Output of the Action
The define web table returns an output: A collection of HTML table rows for the columns that you select. Each row consists of key-value pairs:
-
The key is the column name.
-
The value is the xpath of the corresponding row cell.
You can use the xpath later, such as in a get text or click action.
Add a Define Web Table Action:
Note:
You must use the low-code capabilities to add this action to a robot. Keep reading for step-by-step instructions.Your next steps depend upon your goals:
-
To iterate over the records in the table, add a foreach loop.
-
To record the values from the table to the activity stream, add a log action.
-
To view the data type or variable that the define web table action created, select Data types or Variables on the toolbar in the canvas.