Skip to content
Advertisement

Protractor Js run to linux machine

I have protractor tests in my angular project, and when I would like run it i catch next exception log:

JavaScript

And before it I see browser window with next url: data:,.

UPD protractor.conf.js

JavaScript

UPD2

If I use seleniumAddress: ‘http://localhost:4444/wd/hub‘, I catch next exception:

JavaScript

Help me please run this test in my pc. Thanks a lot.

Advertisement

Answer

If you want to connect to that seleniumAddress, you will need to start a selenium server from protractor/bin/webdriver-manager start. If there is no selenium server running, you won’t be able to run the test there (ECONNREFUSED).

Alternatively you can comment out the seleniumAddress in the config file, use protractor/bin/webdriver-manager update to download the binaries, and protractor will run the tests using the standalone seleniumServerJar.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement