Skip to content

Navigate

Type: page-navigate  ·  Package: Browser v1.0.9

Navigates the current page to a URL. Use it to go to an address after opening the browser, or to move between pages during the flow (for example, open a record’s detail, go back to the list, move to the next section).

It loads the given URL in the page session and waits for loading to reach the point defined in waitUntil before continuing. If the page takes longer than timeout, the activity fails.

  • The URL must be complete, including its scheme (https://…).
  • An error response from the server (404, 500) does not make the activity fail: the error page loads like any other. Check it afterwards with Element Exists or Get Text.
  • If the server doesn’t respond, the domain doesn’t exist or there’s no network, it fails with the browser’s network error.
ParameterTypeDefaultDescription
urlstring—The URL to navigate to. E.g. https://example.com. Supports expressions.
ParameterTypeDefaultDescription
pageZoanPageSession—The page session. Omit it inside a body; outside, pass the session variable (e.g. page = page).
waitUntilstring"load"When to consider navigation done: load (full load, with images and styles) · domcontentloaded (HTML ready) · networkidle (no network traffic for 500 ms) · commit (as soon as the server responds).
timeoutnumber30000Maximum time in ms. Empty, 0 or negative: the project settings value or, if none, 30000.

This activity does not return a value.

Open Browser browser = chrome → output: page
Page Navigate page = page url = "https://erp.example.com/invoice/" + numeroFactura
Page Wait For page = page selector = (#detalleFactura) state = visible
MessageCause and fix
'url' is required.url is empty.
Cannot navigate to invalid URLThe scheme (https://) is missing or the URL is malformed.
net::ERR_NAME_NOT_RESOLVED / net::ERR_CONNECTION_REFUSEDThe domain doesn’t exist, there’s no network or the server refuses connections. Check the URL and the machine’s connection; for intermittent failures, wrap it in Retry.
Timeout 30000ms exceededThe page didn’t reach waitUntil in time. Raise timeout or use a less demanding waitUntil (domcontentloaded) followed by a Wait For.
'page' must be a ZoanPageSession.page is empty outside a body.
  • Open Browser — also accepts an initial url on open.
  • Wait For — wait for the content to be ready after navigating.