interceptRequest fails with "The arguments passed to a command are either invalid or malformed"
See original GitHub issue[//]: # NOTE: This repository only maintains packages that are listed in the Readme. Please make sure that your issue is directly caused by one of these packages and if not file an issue in the correct 3rd party package repository.
Environment (please complete the following information):
- WebdriverIO version: [6.1.25]
- Mode: [WDIO Testrunner]
- If WDIO Testrunner, running sync/async: [sync]
- Node.js version: [10.17.0]
- NPM version: [6.13.4]
- Browser name and version: [Chrome 79]
- Platform name and version: [Windows 10]
- Additional wdio packages used (if applicable): [@wdio/sauce-service]
Config of WebdriverIO N/A
Describe the bug
Using interceptRequest()
fails on SauceLabs with error:
The arguments passed to a command are either invalid or malformed.
To Reproduce Use this
browser.interceptRequest({
url: 'https://saucelabs.com',
redirect: 'https://google.com'
})
[Include code or an example repository that can easily be set up]
Expected behavior This request should intercept the URL request for foo and send to bar. It should not error out.
Log If applicable, add logs to help explain your problem. Create a gist which is a paste of your full Selenium/WebdriverIO logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Selenium/WebdriverIO logs!
Additional context Add any other context about the problem here.
Please use the correct markdown
Issue Analytics
- State:
- Created 3 years ago
- Comments:28 (21 by maintainers)
Tnx @christian-bromann Will prepare a PR for it later today
Sorry, no not really.
This is the endpoint
seems like I’m stuck here, any ideas would be appreciated.
Temporary workaround would be not to use the API provided by the service but the “normal” options that Sauce Labs offers with extendedDebugging