Skip to main content

Wait for web page to load

Sophie avatar
Written by Sophie
Updated over 2 weeks ago

Definition and Usage

This command suspends the workflow execution until a specified web page is fully loaded. It allows you to ensure that all web page elements are completely loaded before proceeding with subsequent actions in your automation workflow.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Web page

Select a variable that contains the web page to work with

Yes

Must be a valid web page object

Timeout (s)

Specify the amount of time (in seconds) to wait for the page to load

Yes

Must be a positive integer

On timeout

Select an action to perform after the timeout

Perform On error actions; Stop loading

Yes

Determines behavior when timeout occurs

Error handling

Parameter

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in the "Web page" parameter by clicking the variable icon or typing {x} where x is your variable name. The variable used should contain a valid web page object that was previously created in your workflow, typically from a "Open web browser" or similar command.


Notes

  • This command is essential when working with web pages that have dynamic content that loads asynchronously.

  • If the timeout is reached before the page loads completely, the action will either perform the error handling actions or stop the loading process based on your "On timeout" setting.

  • Setting an appropriate timeout value is important - too short may cause premature actions on an incomplete page, while too long may unnecessarily delay your workflow.

  • This command only waits for the page to finish loading; it does not verify that specific elements are present or visible.

Did this answer your question?