Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use npm protractor webdriver-manager to start selenium server at a different port

I am trying to run E2E tests for an angular application using protractor. I use the command ./node_modules/protractor/bin/webdriver-manager to start my selenium server. However the default selenium server location is localhost:4444/wd/hub, but localhost:4444 is already used on my machine and this is difficult to change. How do I start a selenium server at a port other than 4444?

like image 947
Selah Avatar asked Jul 23 '14 20:07

Selah


1 Answers

Use below command :

webdriver-manager start --seleniumPort XXXX
like image 112
Nguyen Vu Hoang Avatar answered Oct 21 '22 07:10

Nguyen Vu Hoang