How can I run IE in 32 bit mode in webdriver.io
I am running WebDriver.io with gulp-wdio npm pakage on selenium-standalone
The code I'm running in gulp is:
gulp.task('e2e', function () {
return gulp.src('wdio.conf.js')
.pipe(wdio({
wdio: {
specs: './test/features/**/*.feature'
}
}));
});
And my wdio.conf.js define the browser this way:
capabilities: [
{
browserName: 'internet explorer',
version: 'ANY'
}
],
Typically very slow typing , I found on the internet that the 32 bit version of the web driver fixes the problem, as I never can find how to configure the capabilities or some other place to start the default IE32 bit driver ... Any help would be appreciated @ :-)
source to share
After 2 days of research, I found a solution !!!
There is a config file to be provided to standalone selenium as shown in this Example
so our final setup is done like this:
We have a configuration file wdio.browsers.setup.js containing the browser settings:
module.exports = {
baseURL: 'https://selenium-release.storage.googleapis.com',
version: '3.3.1',
drivers: {
chrome: {
version: '2.29',
arch: process.arch,
// - Recent versions of the driver: https://sites.google.com/a/chromium.org/chromedriver/
baseURL: 'https://chromedriver.storage.googleapis.com'
},
ie: {
version: '3.0.0',
arch: 'ia32',
// - Recent versions of the driver: http://selenium-release.storage.googleapis.com/index.html
baseURL: 'https://selenium-release.storage.googleapis.com'
},
firefox: {
version: '0.15.0',
arch: process.arch,
baseURL: 'https://github.com/mozilla/geckodriver/releases/download'
}
}
};
and then inside wdio.conf.js we load it and assign custom parameters
let browsersSetup = require('./wdio.browsers.setup');
exports.config = {
seleniumArgs: browsersSetup,
seleniumInstallArgs: browsersSetup,
After that everything works fine @ :-)
Note. If you have your web driver installed, globally remove the global setting first:
C:\Users\%USERNAME%\AppData\Roaming\npm
Then you can run the local installation using:
./node_modules/.bin/selenium-standalone install --config=../../wdio.browsers.setup.js
source to share