Web Loop Table
Description
Web Loop Table iterates through rows of an HTML table on a web page, processing one row per loop iteration and extracting values from specified columns in a Web GUI [Classic] workflow. Use this step when your workflow needs to read and act on tabular data — such as processing order lines, validating list entries, or extracting records — directly from a web application. It works within a loop structure: when you add the step to the canvas, a Continue step is also created automatically. You can configure it to process all rows, a specific number of first or last rows, or only rows that meet a defined condition. A Swift Mode option (enabled by default) speeds up table reading. After all specified rows are processed, execution continues along the false path with the input row and any additional fields you defined.
Configurations
| Field Name | Description |
|---|---|
| Web Browser Name | You can select any one Web Browser Name from the given list. Basically, you must select the same Web Browser Name which was selected in Start Browser Step. |
Web Table Tab:
| Field Name | Description |
|---|---|
| Swift mode | Select the checkbox if you want the table records to be read quickly.The checkbox is selected by default. **Important:**If an existing workflow already contains the step, then you will need to manually select the checkbox. |
| Criteria* | Choose the element locator from the list. |
| Criteria value | Provide the value of the element locator to search with. |
| Multiple elements with same criteria | Check this option if there are multiple web elements in the web page having same criteria value you have specified. By default, it will be unchecked. |
| Element index | If you have checked Multiple elements with same criteria specify index of the element you want to locate. You may also select option FIRST if you want first element from the located element and select LAST if you want last element. |
| Get Values Table: | |
| Table Column Index | Specify column index to be retrieved. For multiple columns, mention column index on different rows. |
| Output Field Name | New field to store the retrieved value of the respective column for each row. |
Loop Tab:
| Field Name | Description |
|---|---|
| Conditional Loop? | Checkbox to activate the Conditions block, else Number of rows is active. |
| Number of rows | Specify the number of rows to pass through the loop. Select the following values: - All Rows - First - Last Also, a text box is provided to enter a numeric value N, in case First or Last is selected. |
| Table: Additional Fields | This table is used to create user defined additional fields. Additional fields are added as columns to the row. They are permanent and visible even after the loop is over. Note: Any fields created within a loop are not permanently available after loop execution. Only Additional fields specified in Loop Start are available even after loop execution. |
| Name | Provide names of all additional fields you want to define. |
| Type | Select a data type for the additional field. |
| Format | Select a format for the data Type selected above. |
| Default value | Provide a default value for the additional field. |
| Set empty string? | Select Y or N. If default value is not provided set ‘Set empty string?’ to Y. This sets a null value as an empty string. |
| Block: Conditions For more detailed description with screen shots refer Start Loop step. | Conditions Block is a set of five fields. These fields can be populated with Previous field, Addition fields or Static values. Click the field to populate a value as a toggle or from a popup that comes up. The first field specifies a toggle for a condition. Leave it default to blank or click once to toggle it to NOT. The second is the field to compare.The third field is an operator The fourth field is the field to be compared against or alternately specify a static value in the sixth field to be compared against. Click on the small rectangular icon on the right-hand side of the block to add a condition. You can Add a condition with the following operators: OR, AND, OR NOT, AND NOT, XOR. Multiple condition list by icon on right side Right click on a condition to get a pop-up menu with the following options: Edit condition, Delete condition, Add sub - condition, Move condition to sub-condition (-->), Move condition to parent (<--) and more copy options. These options can be used to create Nested conditions. |
| Button: Get Fields | In the Conditions Block above only previous fields are available. Click Get Fields to make Additional fields also available in the conditions block. |
*Criteria The table below contains the description of criteria.
| Field Name | Description |
|---|---|
| Xpath | Xpath defines the hierarchy of the tags through which you can reach to a particular element. For example /html/body/div[1]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div[2]/div[1]/div[1]/div[1]/span/span |
| Id | Id attribute of a web element can be best way to identify an element if it is present and is going to constant and unique. There are cases however when it is either absent or its value changes every time you access the application in the browser |
| Name | Name is another attribute of a web element which can be used to identify an element. |
| Link Text | If a HTML page contains a hyperlink element <a href=www.google.com>Search On Google</a>, you can identify this href element by providing complete text ‘Search On Google’ as the Link value. |
| Partial Link text | This criterion is same as Link, just that, in this case, you can give partial string for finding a match |
| Tag Name | Every HTML element has a tag associated with it. The element can be located using that tag name. For example, textbox has a tag <input>. |
| Class Name | Class name is the css class associated with an HTML element. If there is a div element <div class=’someclass’>MyDiv</div>, you can locate it by giving class name ‘someclass’. |
| Css Selector | This criterion is useful when an HTML element has multiple associated css classes. Consider an HTML element <div class="btn primary-btn submit"></div>. To identify this div element you can use Css selector as “.btn.primary-btn.submit” |