WDIO IEDriver Service
Note - this service is targeted at WDIO v6.
This service helps you to run IEDriver seamlessly when running tests with the
WDIO testrunner.
Note - this service does not require a Selenium server, but uses IEDriverServer.exe to communicate with the browser
directly. It uses a custom built binary for IE as the one from Selenium expects case-sensitive Content-Length header
and node makes them all lowercase. See here: https://github.com/SeleniumHQ/selenium/issues/7986
The only change made was using stricmp
instead of strcmp
when comparing Content-Length header.
Example capabilities:
capabilities: [{
maxInstances: 1,
browserName: 'internet explorer',
"se:ieOptions": {
ignoreZoomSetting: true,
nativeEvents: false,
"ie.ensureCleanSession": true,
},
timeouts: {}
}],
Installation
npm install wdio-iexplorerdriver-service --save-dev
Configuration
By design, only Internet Explorer is available. In order to use the service you need to add iexplorerdriver
to your
service array:
export.config = {
services: ['iexplorerdriver'],
port: 5555,
ieDriverArgs: ['/log-level=DEBUG'],
ieDriverLogs: './',
ieDriverPersistent: false,
ieDriverRandomPort: true,
};
For more information on WebdriverIO see the homepage.