Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Protractor test is not starting on Firefox

Tags:

protractor

I have got a set of test that run fine on chrome but when I change the capabilities browserName from chrome to firefox don't even get a error info

//Before
   capabilities: {
         'browserName': 'chrome',
         'chromeOptions': { args: ['--test-type', 'show-fps-counter=true'] }
    },

//After
   capabilities: {
          'browserName': 'firefox'
    },
like image 833
Acosta Avatar asked Nov 10 '22 07:11

Acosta


1 Answers

I found the problem with firefox, basically my protractor config was not using any webdriver server setting but was using the default server, this way was quite handy since did not have start selenium by my self

In order to fix this issue I am starting selenium server by myself spesifiying 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"

like image 96
Acosta Avatar answered Jan 04 '23 02:01

Acosta