Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/api/commands/visit.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cy.visit(options)

```javascript
cy.visit('http://localhost:3000') // Yields the window of the remote page
cy.visit('./pages/hello.html')
```

## Arguments
Expand All @@ -34,6 +35,9 @@ The URL to visit.

Cypress will prefix the URL with the `baseUrl` configured in your {% url 'network options' configuration#Global %} if you've set one.

You may also specify the relative path of an html file. The path is relative to the root
directory of the Cypress installation. Note that the `file://` prefix is not needed.

**{% fa fa-angle-right %} options** ***(Object)***

Pass in an options object to control the behavior of `cy.visit()`.
Expand Down