Skip to content

Commit 2a2dae3

Browse files
add a note how to start with the browser object
1 parent 43ec0e4 commit 2a2dae3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

chapter_03.md

+8
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ describe("My Vue.js Example Application", async () => {
107107
});
108108
```
109109

110+
To automate the browser through the [browser object](https://webdriver.io/docs/api/browser) you can either import it via:
111+
112+
```ts
113+
import { browser } from '@wdio/globals'
114+
```
115+
116+
or use `browser` directly as variable since it is available in the global scope.
117+
110118
After you've ported/written the tests you can run it using the wdio testrunner by calling:
111119

112120
```sh

0 commit comments

Comments
 (0)