Protractor test not starting in Firefox

I have a set of tests that work fine on chrome, but when I change the browserName features from chrome to firefox, they don’t even get error information

//Before capabilities: { 'browserName': 'chrome', 'chromeOptions': { args: ['--test-type', 'show-fps-counter=true'] } }, //After capabilities: { 'browserName': 'firefox' }, 
+5
protractor
source share
2 answers

I found a problem with firefox, basically my protractor configuration did not use the webdriver server settings, but used the default server, this method was very convenient, since I did not have initial selenium

To fix this problem, I start the selenium server myself spsifiying firefox and chrome drivers.

java -jar "C: \ Users \% USERNAME% \ AppData \ Roaming \ npm \ node_modules \ protractor \ selenium \ selenium-server-standalone-2.42.1.jar" -Dwebdriver.chrome.driver = "C: \ Users \ % USERNAME% \ AppData \ Roaming \ npm \ node_modules \ protractor \ selenium \ chromedriver.exe "-Dwebdriver.firefox.bin =" C: \ Users \% USERNAME% \ AppData \ Local \ Mozilla Firefox \ firefox.exe "

+1
source share

It seems that firefox 35.36 is not supported by protractor, so one solution is to download firefox 34 here and set its path by adding

 "firefox_binary": "path/to/custom/firefox" "binary_": "path/to/custom/firefox" 

in your conf file listed here , @ 6220119

0
source share

All Articles