testing-library / webdriverio-testing-library

🕷️ Simple and complete WebdriverIO DOM testing utilities that encourage good testing practices.
16 stars 14 forks source link

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

Open abhinaba-ghosh opened 2 years ago

abhinaba-ghosh commented 2 years ago

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",
olivierwilkinson commented 2 years ago

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 👍