类型“ BrowserObject”上不存在属性“ setupInterceptor”

时间:2019-12-02 02:54:42

标签: webdriver-io

我正在尝试使用wdio拦截服务(https://webdriver.io/docs/wdio-intercept-service.html)。我还安装了yarn add wdio-intercept-service -D和npm以及webdriverajax -D。

Usign browser.setupInterceptor()引发错误:'BrowserObject'类型上不存在属性'setupInterceptor'。

1 个答案:

答案 0 :(得分:0)

在您的wdio-intercept-service类型部分中添加tsconfig.json