Skip to main content Link Menu Expand (external link) Document Search Copy Copied

goTo

The goTo action navigates to a URL. This action is useful for starting a test at a specific page.

You can also specify an origin to navigate to a URL relative to a specific path.

For comprehensive options, see the goTo reference.

Examples

{
  "tests": [
    {
      "steps": [
        {
          "description": "Navigate to example.com.",
          "action": "goTo",
          "url": "https://example.com"
        }
      ]
    }
  ]
}
{
  "tests": [
    {
      "steps": [
        {
          "description": "Navigate to with an origin.",
          "action": "goTo",
          "url": "/search",
          "origin": "https://www.google.com"
        }
      ]
    }
  ]
}