Using an absolute path when setting the webdriver for Internet Explorer in Protractor on Windows -
i trying run automated tests using protractor. protractor.cong.js file follows.
exports.config = { specs: ['tests/**/*.test.js'], params: { colors: false }, multicapabilities: [ { 'browsername': 'firefox', 'proxy': { 'proxytype': 'autodetect'} }, { 'browsername': 'chrome' }, { 'browsername': 'internet explorer', 'ignoreprotectedmodesettings': true } ], seleniumargs: ['-dwebdriver.ie.driver=node_modules\grunt-protractor-runner\node_modules\protractor\selenium\iedriverserver.exe']
}
this works , prefer if path webdriver absolute rather relative. example:
seleniumargs: ['-dwebdriver.ie.driver=c:\selenium\iedriverserver.exe']
is possible? have checked wiki has not offered solution.
the problem was trying use window style paths or unix style paths rather amalgimation of two. correct way write is:
seleniumargs: ['-dwebdriver.ie.driver=c:/selenium/iedriverserver.exe']
not
seleniumargs: ['-dwebdriver.ie.driver=c:\selenium\iedriverserver.exe']
(the slashes other way round)
Comments
Post a Comment