Daniel
Daniel

Reputation: 318

Protractor Selenium Hub address

Is there a way to pass in the address of the Selenium Hub when running the protractor tests e.g. with using npm run protractor?

Upvotes: 0

Views: 895

Answers (2)

Monty
Monty

Reputation: 117

It could also be placed inside your conf.js file e.g.:

exports.config = {
   seleniumAddress: 'http://localhost:4444/wd/hub',
   ... 
};

Upvotes: 0

Optimworks
Optimworks

Reputation: 2547

Yes, you can pass selenium address while running from command prompt:

 protractor --seleniumAddress='http://localhost:4444/wd/hub' conf.js

Upvotes: 6

Related Questions