Skip to content

Commit dc1f48d

Browse files
fix example
1 parent b1e437a commit dc1f48d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ NOTE: [WebdriverIO](https://github.com/webdriverio/webdriverio) `v5.16.11` or hi
2727
If you run your tests through the [WDIO testrunner](https://webdriver.io/docs/clioptions) no additional setup is needed. WebdriverIO initialises `expect-webdriverio` and makes `expect` available in the global scope. So you can use it directly in your tests:
2828

2929
```js
30-
const $button = $('button')
31-
expect($button).toBeDisplayed()
30+
const $button = await $('button')
31+
await expect($button).toBeDisplayed()
3232
```
3333

3434
See more [Examples](docs/Examples.md)

0 commit comments

Comments
 (0)