Get URL
Retrieves the current URL of the browser 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 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.
Output
- URL - The current URL of the browser page, including protocol, domain, path, and query parameters.
Examples
Get Current URL
Browser ID: {{browser_id}}
Output: {{current_url}}
Verify Navigation
1. Open Link node:
URL: https://example.com/products
2. Get URL node:
Browser ID: {{browser_id}}
Output: {{url}}
3. Condition: if {{url}} contains "products"
Extract URL Parameters
1. Get URL node:
Browser ID: {{browser_id}}
Output: {{full_url}}
2. Use String operations to extract parameters from {{full_url}}
Log Current Page
Browser ID: {{browser_id}}
Output: {{page_url}}
Then log: "Currently on: {{page_url}}"
Tips
- Use to verify successful navigation
- Extract URL parameters for data processing
- Log URLs for debugging and monitoring
- Useful in conditional logic to check current page
- Can be used to detect redirects
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
- Get Title - Get page title
- Get Page Source - Get HTML source
- Go Back - Navigate to previous page
- Go Forward - Navigate to next page