Skip to content

Commit

Permalink
add a note how to start with the browser object
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Apr 9, 2024
1 parent 43ec0e4 commit 2a2dae3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chapter_03.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ describe("My Vue.js Example Application", async () => {
});
```

To automate the browser through the [browser object](https://webdriver.io/docs/api/browser) you can either import it via:

```ts
import { browser } from '@wdio/globals'
```

or use `browser` directly as variable since it is available in the global scope.

After you've ported/written the tests you can run it using the wdio testrunner by calling:

```sh
Expand Down

0 comments on commit 2a2dae3

Please sign in to comment.