Write Table

Write Table

This block lets you set a specified range of values using a table construct that Leapwork has grabbed from the green screen, meaning faster test creation. Leapwork captures a table structure and then lets you specify inputs according to column and row numbers.

Leapwork “invents” a table that does not actually exist within the green screen structure, and reads columns and names to get an occurrence and read the fields underneath it.

Building Block Header

The green input connector (top left) triggers this block to begin execution.

The green output connector (top right) is triggered when the table values have been entered successfully.

You can always change the title of a block by double-clicking on it and typing in a new title.

Table name

This is the field that Leapwork will look for; it represents the beginning of a table that the block will work with.

Method

This refers to the data selection method, whether:

First row - always select the first row in the range
Row index - select a specific row, such as the 5th row

Use occurrence

This allows you to specify which occurrence to use in case you have multiple matches.

Not found

The green output connector is triggered if the field representing the table is not found before the timeout (see below). This is typically used to a flow or to explicitly fail a case by linking it to a Fail block.

Default timeout

If the 'Default Timeout' property checkbox is not selected, then the timeout value will be set to 10 seconds unless changes manually. If the 'Default Timeout' property checkbox is selected, then the 'Default timeout' value selected in the flow settings (under “Max. run time) will be applied.

The Green Screen Recorder and building blocks are available with Enterprise plans.