Skip to content

Commit

Permalink
Add docs for file protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev committed Feb 22, 2017
1 parent 5c35784 commit 8ccb740
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/articles/documentation/test-api/test-code-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ test

If the start page is not specified, it defaults to `about:blank`.

To test webpages in local directories, you can use the `file://` protocol.

```js
fixture `MyFixture`
.page `file:///user/my-website/index.html`;
```

## Initialization and Clean-Up

TestCafe allows you to specify functions that will be executed before a fixture or test is started and after it is finished.
Expand Down

0 comments on commit 8ccb740

Please sign in to comment.