webdriverio-testing-library
webdriverio-testing-library copied to clipboard
Getting Can not read property '<element-id>' of undefined
Hi Team,
I am using this code snippet -
const { getByLabelText } = setupBrowser(browser);
const button = await getByLabelText('username');
await button.waitForDisplayed();
Getting error as -

Using WebdriverIO dep version -
"@wdio/cli": "7.7.5",
"@wdio/devtools-service": "7.7.5",
"@wdio/junit-reporter": "7.7.5",
"@wdio/local-runner": "7.7.5",
"@wdio/mocha-framework": "7.7.5",
"@testing-library/webdriverio": "^3.0.5",
Hi @abhinaba-ghosh,
Thanks for raising this 😄 I'm not sure what the issue right now but it looks like it might be related to the dev tools service. I'll try to have a look into this week 👍