Go Forward
Navigates the browser forward by one page.
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 node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
if ContinueOnError property is true, no error is caught when the project is executed even if Catch node is used.
Input
- Page Id - Id of the page on which forward navigation is to be made. This ID is generated by the Open Browser node.
- Times - Number of times to navigate forward. The default value is 1.
How It Works
- The node receives the Page ID and Times parameter
- It validates that the Page ID is not empty
- It waits for any configured delay before execution
- It retrieves the active page session using the provided Page ID
- It validates that Times is greater than zero
- The node executes the browser forward navigation the specified number of times in a loop
- Each forward navigation moves to the next page in the browser history
- The node applies any configured delay after execution
Requirements
- An active browser session created by the Open Browser node
- A valid Page ID from the Open Browser node
- Browser history must have forward pages available (user must have gone back previously)
- The Times value must be greater than zero
Error Handling
| Error Code | Description |
|---|---|
| Core.CSV.AppendCSV.ErrOnCreate | Configuration parsing error during node creation |
| Core.Browser.GoForward.ErrOnMessage | Error parsing incoming message data |
| Core.Browser.GoForward.ErrPageId | Page ID is empty or not provided |
| Core.Browser.GoForward.ErrSession | Invalid or expired Page ID, session not found |
| Core.Browser.GoForward.ErrTimes | Times value is zero or negative |
| Core.Browser.GoForward.ErrForward | Failed to navigate forward in browser history |
Usage Examples
Example 1: Undo Back Navigation
When you need to return forward after going back:
1. Use Open Browser and navigate through pages
2. Use Go Back to return to a previous page
3. After completing tasks, use Go Forward with:
- Times: 1
4. The browser returns to the page you were on before going back
5. Continue with your automation
Example 2: Testing Navigation Flow
When testing browser navigation behavior:
1. Navigate through several pages (A → B → C → D)
2. Use Go Back with Times: 3 (returns to A)
3. Use Go Forward with Times: 2 (advances to C)
4. Verify page content at C
5. Continue testing navigation patterns
Example 3: History-Based Page Recovery
When automation requires returning to a specific point in history:
1. Track navigation through multiple pages
2. Use Go Back to return to earlier pages
3. Perform data extraction or validation
4. Use Go Forward to restore position in navigation flow
5. Continue automation from the restored position
Usage Notes
- Go Forward only works if the browser has forward history
- Forward history exists only after using Go Back or similar navigation
- If Times exceeds available forward history, the node will fail
- Opening a new page after going back clears the forward history
- Going forward does not trigger a full page reload unless required by the page
- JavaScript state and dynamic content may be restored to previous state
- The default value for Times is 1 if not specified
Tips
- Go Forward is typically used in combination with Go Back
- Ensure forward history exists before using this node
- Use Times carefully to avoid exceeding available forward history
- Consider adding delays after forward navigation for page stabilization
- For single-page applications (SPAs), forward navigation may not work as expected
- Track your navigation flow to understand when forward history is available
- Test navigation patterns thoroughly as forward history can be cleared unexpectedly
- Use URL validation to confirm you're on the expected page after going forward
Related Nodes
- Open Browser - Creates the browser session and Page ID
- Go Back - Navigates backward in browser history
- Refresh - Reloads the current page
- Open Link - Navigates to a new URL