shmuel613
shmuel613

Reputation: 1734

How to run Protractor test when spec is remote

Here's the situation:

How can I run the Protractor command on machineA so that it points to the spec on machineB?

ie. How to get a local Protractor command to point to a remote spec?

Upvotes: 0

Views: 610

Answers (1)

Anil wagh
Anil wagh

Reputation: 273

You need to provide seleniumAddress in your config file and make sure directConnect option is commented or value should be false.

Start webdriver on machineA through webdriver-manager start

exports.config = {
    baseUrl: 'http://example.com/',
    seleniumAddress: 'https://<machineA IP addess>:4444/wd/hub',
    //directConnect:true,
...
}

Upvotes: 1

Related Questions