Assuming you have already installed Charles proxy and WebDriver IO Mocha automation framework, follow these steps:
// Set Charles Proxy settings
exports.config = {
...
capabilities: [{
browserName: 'chrome',
chromeOptions: {
proxy: {
proxyType: 'manual',
httpProxy: 'localhost:8888' // replace with Charles proxy port number
}
}
}],
...
}
Note: If you have configured HTTPS requests in your test script, you may need to add SSL proxy settings to the Charles proxy configuration.
Asked: 2023-07-11 13:41:18 +0000
Seen: 15 times
Last updated: Jul 11 '23