Make sure the driver is compatible with the browser you are using. If set WebdriverIO won't attempt to download a driver but will use the one provided by this path. This directory is used to store all drivers that are downloaded when attempting to start a session.ĭefault: _CACHE_DIR || os.tmpdir() binary The path to the root of the cache directory. While all driver offer different parameters for configuration, there are some common ones that WebdriverIO understand and uses for setting up your driver or browser: cacheDir WebdriverIO uses a custom capability that allows you to pass in parameters to the driver. WebdriverIO manages installing and running browser driver for you. WebdriverIO Capabilities to manage browser driver options ms:edgeOptions: EdgeOptions for specifying the environment when using EdgeDriver for testing Chromium EdgeĪutomation Engine Capability Extensions .moz:firefoxOptions: Geckodriver extensions, only applicable for testing in Firefox.goog:chromeOptions: Chromedriver extensions, only applicable for testing in Chrome.While the amount of fixed defined capabilities is very low, everyone can provide and accept custom capabilities that are specific to the automation driver or remote interface: Browser Specific Capability Extensions The WebdriverIO testrunner will fail early if user defined capabilities do not adhere to that specification. The format of a capability object is well defined by the WebDriver specification.