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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -