How do I set the custom repository for drivers? #11682
-
Hello, I need to use custom npm repository for drivers in WebdriverIO. It's configured in .npmrc file and all the package.json dependencies are taken from there. But the WebdriverIO is trying to download drivers (i.e. chromedriver) from the Internet (which is restricted in the company). The latest version of WebdriverIO is used. I'm trying to figure out if it's possible to configure the source for drivers somehow (couldn't find it in docs) or I have to find more complex workarounds. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@Medvedscak it is not possible to define custom download sources but you can download the drivers manually and point WebdriverIO to use them, via e.g.: capabilities: [{
browserName: 'chrome',
'wdio:chromedriverOptions': { binary: '/path/to/binary' }
}] You can read up on driver options in https://webdriver.io/docs/capabilities#webdriverio-capabilities-to-manage-browser-driver-options |
Beta Was this translation helpful? Give feedback.
@Medvedscak it is not possible to define custom download sources but you can download the drivers manually and point WebdriverIO to use them, via e.g.:
You can read up on driver options in https://webdriver.io/docs/capabilities#webdriverio-capabilities-to-manage-browser-driver-options