-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'addCommand' of undefined #504
Comments
btw, I didn't call |
@chmanie can we get also @DPGZl , what version of WebdriverIO are you using? |
Yup, I'll archive it asap. |
Hi @tehhowch, thanks for your response, according to your suggestion I've removed I'm not using
|
Please upgrade from v6 to v7. The signature of the If you cannot upgrade to the current LTS or higher, please open a PR to this repo that changes the "before" hook in e.g. before() {
const browser = typeof arguments[2] === 'undefined' ? globalThis.browser : arguments[2];
//...rest is unmodified |
You don't actually have to upgrade to v7, v6.10 will suffice, as that is when the change was made to start providing |
@tehhowch , you mean I need to update I've tried to update The issue is resolved when I tried to debug on my local like the example you list above, so I'm wondering if it's ok to open a PR. |
To update your WDIO packages, you should modify all And yes, feel free to open a PR (with a test!) that restores support for WDIO 5.x, <6.10. |
@DPGZl were you interested in contributing the fix? |
I've addressed this in 210fdfc I'll create a new release in the next few days. |
4.4.1 is available in NPM now |
Hi, can anyone help me with this issue?
I wanna get a request header by Intercept Service, but I got this error:
ERROR @wdio/utils:shim: TypeError: Cannot read property 'addCommand' of undefined at WebdriverAjax.before
, I've tried to find the solution but nothing got.Here is the related packages version:
"wdio-chromedriver-service": "6.0.4", "wdio-intercept-service": "^4.3.1", "webdriverajax": "^2.2.0"
The text was updated successfully, but these errors were encountered: