protractor icon indicating copy to clipboard operation
protractor copied to clipboard

disableEnvironmentOverrides in protractor tests

Open abhishekswain opened this issue 11 years ago • 1 comments

While using SauceLabs Ondemand Jenkins plugin,if we select a browser platform combination, it propagates browser and platform details to SELENIUM_BROWSER , SELENIUM_VERSION etc.

webdriverjs builder is made to override user provided capabilities in case SELENIUM_BROWSER env variable is found. So in this case capabilities provided in protractor config is overridden and caps like platform is lost. So test always runs with default sauce browser chrome on Linux.

Please suggest or make a way to pass disableEnvironmentOverrides() to builder.

abhishekswain avatar Jul 03 '15 15:07 abhishekswain

I'm not sure what exactly you are asking. In protractor you can define your browser and capability. See https://github.com/angular/protractor/blob/master/docs/referenceConf.js

You can also connect to sauce, see http://www.protractortest.org/#/server-setup#remote-selenium-server.

In any case, this is more of a question than an issue. Please read the contributing guidelines.

hankduan avatar Jul 07 '15 18:07 hankduan