We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4170dbc commit 9a369c4Copy full SHA for 9a369c4
docs/webdriverio-testing-library/intro.mdx
@@ -156,6 +156,18 @@ declare global {
156
}
157
```
158
159
+If you are finding an error similar to this:
160
+
161
+```typescript
162
+browser.getByRole('navigation')
163
+// "Argument of type '"navigation"' is not assignable to parameter of type 'ByRoleOptions | undefined'."
164
+```
165
166
+you need to include "DOM" in the
167
+[lib](https://www.typescriptlang.org/tsconfig#lib) option of your tsconfig. See
168
+[here](https://github.com/testing-library/webdriverio-testing-library/issues/22)
169
+for more information.
170
171
Additional information about using typescript with WebdriverIO can be found
172
[here](https://webdriver.io/docs/typescript/)
173
0 commit comments