Closed psstoyanov closed 1 year ago
Can confirm this is an issue which has appeared only since a short time ago.
Can be reproduced by creating a new project using default settings for the CLI wizard.
Seems like this change is the culprit: https://github.com/webdriverio/expect-webdriverio/pull/932
There is a temporary workaround which can be applied to your package.json:
"overrides": {
"expect-webdriverio": "3.5.0"
}
As per @erwinheitzman suggestion, forcing expect-webdriverio
to an older version resolves the issue:
mocha
, jasmine
or cucumber
, forcing one of the frameworks to an older version may work as well.cucumber-framework
it's easier to force expet-webdriverio
directlyUsing an override is indeed far better solution :+1:
The expect-webdriverio
dependency is defined via "expect-webdriverio": "^3.0.0"
so you will get the latest version with the fix by updating your dependencies:
rm -r node_modules package-lock.json
npm install
@christian-bromann , the issue is observable with the latest expect-webdriverio
version 3.5.1
as of right now.
The override to the older 3.5.0
doesn't exhibit the issue with the minimal example.
Am I missing something as to why this ticket is closed?
I see, this is a different error than I thought then. Reopening.
This just got fixed and will be released as v3.5.2
.
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
v7.25.4
Node.js Version
v19.0.0
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
Followed the Get Started tutorial: https://webdriver.io/docs/gettingstarted
However when running:
The following error is thrown:
What is your expected behavior?
The test completes successfully
How to reproduce the bug.
https://github.com/psstoyanov/minimal_wdio_element_error
Relevant log output
Code of Conduct
Is there an existing issue for this?