Skip to content
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

Any example using it wdio7? #148

Open
unickq opened this issue Sep 2, 2021 · 1 comment
Open

Any example using it wdio7? #148

unickq opened this issue Sep 2, 2021 · 1 comment

Comments

@unickq
Copy link

unickq commented Sep 2, 2021

Hey,

Trying to set it up with wdio 7 and typescript. Still no luck. Is any working sample available?
https://github.com/chmanie/wdio-intercept-example-ts - didn't help much

@DrewciferB
Copy link

@unickq I'm just upgrading our WDIO from 6 to 7 and I've run into an issue with this service. I could be wrong but the sample project you linked doesn't have the 'intercept' service added to the test runner services array in wdio.conf.js - it only has
services: ['chromedriver']
where it should probably have
services: ['chromedriver', 'intercept']
however that sample project is using WDIO v6...if you're like me then you're using v7 and you're getting a different error on compile:

node_modules/wdio-intercept-service/types/wdio-intercept-service.d.ts:60:59 - error TS2694: Namespace 'global.WebDriver' has no exported member 'Client'.
60 type AsyncSync<T> = WebdriverIO.Browser extends WebDriver.Client

This seems to be similar to (this) issue in #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants