> ## 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.

# Page action

> Run a JavaScript action on a web page without allowing the browser to open a new page.

The Page Action command performs a JavaScript action on a web page while preventing the browser from opening a new page, such as in response to a mouse click. Located under **Action** in the command palette.

## Action settings

The Action settings determine which JavaScript actions the command performs. The default action is `element.click()`; clear **Use default action script** to customize it.

1. **Action script:** Defines the JavaScript actions to perform. The command generates actions automatically based on the selected form field; clear **Use default action script** to enter JavaScript actions manually.
2. **Use default action script:** Uses the automatically generated action. Clear this checkbox to enter actions manually in **Action script**.
3. **Break List:** Specifies whether the action breaks an HTML area. Actions that load a new page always break HTML areas. The default is **Default**; you can also select **Yes** or **No** based on the page load.
4. **Always parse page:** Parses the web page after every action. The default is **True**.
5. **Activity required:** Requires the action to complete a specific task, such as loading a page, before continuing. The default is **True** (selected).

## Wait for content

Wait for Content can wait for web content to appear on a page or for a specific URL to finish loading. When it waits for web content, select a web element in the browser; the parent Page Action command then waits until that element is available on the page.

These settings are effective only when a browser wait selection is active in the current browser. The UI shows this requirement in a note at the top of the section.

* **Requirement:** Specifies how the command handles waiting for content to appear or for a URL to finish loading. The default is **Required**.
  * **Required:** Waits for the content or URL. If the content does not appear within the configured **Wait for Content Timeout**, the command fails.
  * **Optional:** Waits for the content or URL, but the parent Page Action command does not fail if the content does not appear within the configured **Wait for Content Timeout**.
  * **No Wait:** Completes the parent Page Action command as soon as the content appears, without waiting for it to load fully.
* **Timeout:** Sets the number of seconds between completion of the action and parsing of the page. The default is 60 seconds.
* **Wait for removal:** Waits for the selected element to be removed from the page before continuing. This option is disabled by default.
* **Wait for visibility:** Waits for the selected element to become visible before continuing. This option is enabled by default.
* **Wait for change:** Waits for any change on the page before continuing. This option is enabled by default.
* **Search All Frames:** Specifies whether to wait for all page frames to finish loading.
  * **Default:** Inherits the setting from the parent command.
  * **Yes:** Checks the URL of all frames and monitors all web requests that load content asynchronously.
  * **No:** Checks only the selected frames.

## Error handling

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

## Export

See the legacy [Export reference](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.