> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# goTo

> Reference for the `goTo` schema.

## Referenced In

* [Markup definition](/reference/schemas/markup-definition)
* [test](/reference/schemas/test)
* [Resolved context](/reference/schemas/resolved-context)

## Fields

| Field | Type                                                                                     | Description                        | Default |
| :---- | :--------------------------------------------------------------------------------------- | :--------------------------------- | :------ |
| goTo  | one of: - string - object([Go to URL (detailed)](/reference/schemas/go-to-url-detailed)) | Required. No description provided. | —       |

## Examples

```json
{
  "goTo": "https://www.google.com"
}
```

```json
{
  "goTo": "/search"
}
```

```json
{
  "goTo": {
    "url": "https://www.google.com"
  }
}
```

```json
{
  "goTo": {
    "url": "/search",
    "origin": "https://www.google.com"
  }
}
```

```json
{
  "goTo": {
    "url": "/dashboard",
    "origin": "https://my-app.com",
    "params": {
      "__clerk_testing_token": "$CLERK_TESTING_TOKEN"
    }
  }
}
```

```json
{
  "goTo": {
    "url": "https://www.example.com",
    "waitUntil": {
      "networkIdleTime": 500
    }
  }
}
```

```json
{
  "goTo": {
    "url": "https://www.example.com/dashboard",
    "waitUntil": {
      "find": {
        "selector": "[data-testid='dashboard-loaded']"
      }
    }
  }
}
```

```json
{
  "goTo": {
    "url": "https://www.example.com/app",
    "timeout": 60000,
    "waitUntil": {
      "networkIdleTime": 500,
      "domIdleTime": 1000,
      "find": {
        "selector": ".main-content",
        "elementText": "Dashboard"
      }
    }
  }
}
```

```json
{
  "goTo": {
    "url": "https://www.example.com/app",
    "timeout": 60000,
    "waitUntil": {
      "networkIdleTime": 0
    }
  }
}
```

```json
{
  "goTo": {
    "url": "https://www.example.com/status",
    "waitUntil": {
      "find": {
        "elementText": "System operational"
      }
    }
  }
}
```

```json
{
  "goTo": {
    "url": "/checkout",
    "origin": "https://my-app.com",
    "newTab": "cart"
  }
}
```

```json
{
  "goTo": {
    "url": "/admin",
    "origin": "https://my-app.com",
    "newWindow": {
      "name": "admin",
      "tab": "overview"
    }
  }
}
```

```json
{
  "goTo": {
    "url": "/orders",
    "origin": "https://my-app.com",
    "surface": {
      "browser": "chrome",
      "window": "admin",
      "tab": "overview"
    }
  }
}
```

```json
{
  "goTo": {
    "url": "http://localhost:8092",
    "waitUntil": {
      "find": {
        "selector": "button",
        "elementText": "Standard Button",
        "elementTestId": "standard-btn",
        "elementAria": "Sample Standard Button",
        "elementId": "standard-btn",
        "elementClass": [
          "btn"
        ],
        "elementAttribute": {
          "type": "button",
          "value": "Standard Button"
        }
      }
    }
  }
}
```