Refresh
Reloads the current page in the browser, similar to pressing F5 or clicking the refresh button.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing the node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If Continue On Error property is true, no error is caught when the project is executed, even if the Catch node is used.
Input
- Browser ID - The browser session identifier from the Open Browser node.
Examples
Basic Refresh
Browser ID: {{browser_id}}
Refresh and Wait for Element
1. Refresh node:
Browser ID: {{browser_id}}
2. Wait Element node:
Browser ID: {{browser_id}}
Selector: //div[@id='content']
Wait Timeout (sec): 10
Refresh in Loop Until Condition Met
Loop:
1. Refresh node:
Browser ID: {{browser_id}}
2. Get Value node:
Browser ID: {{browser_id}}
Selector: //span[@id='status']
Output: {{status}}
3. Break if {{status}} equals "complete"
Tips
- Add a Wait Element node after Refresh to ensure the page has loaded
- Refreshing clears any JavaScript state and resets the page
- Use with polling patterns to check for updated content
- Unsaved form data will be lost on refresh
- Add appropriate delays after refresh for page load completion
Common Errors
- "Browser ID cannot be empty" - Connect to an Open Browser node
- "Browser session not found" - Ensure the Open Browser node has run successfully
Related Nodes
- Open Link - Navigate to a URL
- Go Back - Navigate to previous page
- Go Forward - Navigate to next page
- Wait Element - Wait for page elements
- Get URL - Get current URL