get_url method retrieves the URL of the currently active page in the browser window. This is useful for verifying navigation, capturing the current state, or building conditional logic based on the page location.
Method Signature
Parameters
Optional timeout in milliseconds. If not specified, uses the default timeout.
Return Value
Returns aGetUrlResponse object:
The URL of the currently active page.
Example
Use Cases
Verify Navigation
Confirm the browser navigated to the expected page after an action
Conditional Logic
Branch your automation based on the current page URL
Logging & Debugging
Log the current URL at each step for debugging automation flows
URL Extraction
Capture the final URL after redirects or form submissions