webdriverio-testing-library icon indicating copy to clipboard operation
webdriverio-testing-library copied to clipboard

Getting Can not read property '<element-id>' of undefined

Open abhinaba-ghosh opened this issue 3 years ago • 1 comments

Hi Team,

I am using this code snippet -

    const { getByLabelText } = setupBrowser(browser);
    const button = await getByLabelText('username');
    await button.waitForDisplayed();

Getting error as - Screenshot 2022-03-11 at 4 53 40 PM

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",

abhinaba-ghosh avatar Mar 11 '22 11:03 abhinaba-ghosh

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 👍

olivierwilkinson avatar Mar 27 '22 22:03 olivierwilkinson