Go to URL

axiom.goto(url) sends the session's page to a URL and resolves once the page has loaded. The same step type as the No-Code Tool's Go to page, called from your code.

Signature


await axiom.goto(url, doNotShareLocalstorage, openInNewTab);
ParameterTypeRequiredDefaultDescription
urlstringYesURL to navigate to. Must use http or https scheme.
doNotShareLocalstoragebooleanNofalseWhen true, isolates localStorage from any previously visited origins in the session.
openInNewTabbooleanNofalseWhen true, opens the URL in a new tab rather than reusing the current page.

Example


await axiom.browserOpen();
await axiom.goto("https://example.com/login");

URL constraints


Only http and https URLs are accepted. Other schemes are rejected:

  • file://: the cloud sandbox has no local filesystem.
  • data:: not supported.
  • chrome://: browser-internal pages are not exposed.

Notes


  • The cloud browser uses a datacentre IP. Some sites block known datacentre ranges with bot detection, expect this on those targets.
  • The call resolves once the page's load event fires. For pages that finish their real work after load (single-page apps, lazy-loaded content), insert an axiom.wait() before the next step, or retry the next step with your own loop.
  • There's no wait-for-selector method today. Use axiom.wait() for a fixed pause, or retry your next call until it stops throwing.