> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequentum.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Link repeater

> Open and process matching links repeatedly until no eligible links remain or a repeat limit is reached.

The Link Repeater command follows matching links until no eligible links remain or the repeat limit is reached. Use it for pagination where each page has a URL and XPath can select the links to process. Located under **Browser** in the command palette.

## Use Link Repeater for pagination

1. Select the links to process with XPath.
2. Choose how to handle missing, hidden, or disabled links.
3. Set **Repeat** to **When Exists** or **When New**. For **When New**, choose the comparison attribute used to identify new links.
4. Choose when to evaluate the loop condition and set a repeat limit if needed.

## Command properties

### Selected links

![Selected-link settings](https://mintcdn.com/sequentum/dOYM46qwxTPgqNVx/images/agents/commands/link-repeater/img-07.png?fit=max\&auto=format\&n=dOYM46qwxTPgqNVx\&q=85\&s=0a0434fdcd9e2d0a869b6d1e44531d70)

* **When missing:** Specifies what happens when the selected content is missing. The default is **Ignore**.
  * **Fail:** Fails the Agent at this command and stops further execution.
  * **Warn:** Ignores the current command and its child commands, and logs a page-load error.
  * **Ignore:** Ignores the current command and its child commands.
  * **Passthrough:** Ignores the missing content and continues executing child commands.
* **When hidden or disabled:** Controls how the Agent handles elements based on their visibility or enabled state.
  * **Select:** Selects matching elements whether they are visible or disabled.
  * **Ignore:** Selects only matching elements that are present and enabled.
* **Selected link:** Displays the content selected by the command on the current page. If nothing is selected or the selection is missing, it displays **No selected content**.

### Repeater settings

* **Repeat:** Selects the condition used for pagination. The default is **When Exists**.
  * **When Exists:** Continues processing while matching elements remain on the page. This is useful for paginated or dynamically loaded content where links are processed until none remain.
  * **When New:** Processes links when new content appears. Selecting this option makes **Compare Attribute** available so that new links can be identified by **Text**, URL, HTML, or another attribute; **Text** is the default.

![Repeat behavior settings](https://mintcdn.com/sequentum/dOYM46qwxTPgqNVx/images/agents/commands/link-repeater/img-08.png?fit=max\&auto=format\&n=dOYM46qwxTPgqNVx\&q=85\&s=a54e13fc496c5a27304c229ac752582e)

![Compare Attribute setting for When New](https://mintcdn.com/sequentum/dOYM46qwxTPgqNVx/images/agents/commands/link-repeater/img-09.png?fit=max\&auto=format\&n=dOYM46qwxTPgqNVx\&q=85\&s=9d19dae5411415bd02680a270a8e66e2)

* **Loop control:** Determines when the repeat condition is evaluated. The default is **Exit**.
  * **Exit:** Evaluates the condition after child commands have run for the first time. If the condition is met, the loop ends without another iteration.
  * **Entry:** Evaluates the condition before child commands run. If the condition is not met, the loop does not start.

![Loop control setting](https://mintcdn.com/sequentum/dOYM46qwxTPgqNVx/images/agents/commands/link-repeater/img-10.png?fit=max\&auto=format\&n=dOYM46qwxTPgqNVx\&q=85\&s=7622f68b3e492c11f896fa70a9c4d2c9)

* **Repeat limit:** Sets the maximum number of loop iterations.

### Browser

See [Browser](https://docs.sequentum.com/agents/commands/properties/browser.md) for more information.

### Error handling

See [Error Handling](https://docs.sequentum.com/agents/commands/properties/error-handling.md) for more information.

### Export

See [Export](https://docs.sequentum.com/agents/commands/properties/export.md) for more information.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.