Definition and Usage
The Wait page loaded command is used to instruct the workflow to pause until the page is fully loaded for a specified amount of time.
It allows you to instruct the workflow to wait for the page to be fully loaded before continuing on to the next step. This can be especially helpful when you’re dealing with slow-loading pages or ones containing dynamic content. Depending on the size of the page and the number of resources being loaded, it can take anywhere from a few seconds to a minute or longer for a page to fully load. While the page is loading, any interactions with it may cause unexpected results. Using the Wait page loaded command allows you to ensure that any interactions with the page will occur after it is finished loading and that all resources can be accessed.
Parameters Values
Set parameters
Parameter | Description |
Web page | Select a webpage |
Timeout (s) | Specify the amount of time (in seconds) to wait for the page to load |
When timeout | Select an action to proceed when a timeout occurs |
Error handling
Parameter | Description |
When error occurs | Specify the action to proceed when an error occurs |
Example
The above workflow will go to the web page "www.octoparse.com" in a built-in browser and save the website URL as a new variable named "Octoparse", then wait for the web page to be loaded for 5 seconds.