From 2a2dae3641631a120d8a94f98a3ef2980b975b51 Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Tue, 9 Apr 2024 11:10:43 +0200 Subject: [PATCH] add a note how to start with the browser object --- chapter_03.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chapter_03.md b/chapter_03.md index bb27f9b..0f1964c 100644 --- a/chapter_03.md +++ b/chapter_03.md @@ -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