Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 3879af3

Browse files
committed
docs(browser-setup): add notes about multiCapabilities
1 parent 86fb0ed commit 3879af3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/browser-setup.md

+15
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ capabilities: {
3737
```
3838
If running with chromeOnly and chromeOptions together, chromeOptions.args and chromeOptions.extensions are required due to [Issue 6627](https://code.google.com/p/selenium/issues/detail?id=6627&thanks=6627&ts=1385488060) of selenium-webdriver currently(@2.37.0). So in order to avoid the issue, you may simply set them(or one of them) to an empty array.
3939

40+
Testing against multiple browsers
41+
---------------------------------
42+
43+
If you would like to test against multiple browsers at once, use the multiCapabilities configuration option.
44+
45+
```javascript
46+
multiCapabilities: [{
47+
'browserName': 'firefox'
48+
}, {
49+
'browserName': 'chrome'
50+
}]
51+
```
52+
53+
Protractor will run tests in parallel against each set of capabilities. Please note that if multiCapabilities is defined, the runner will ignore the `capabilities` configuration.
54+
4055
PhantomJS
4156
-------------------------------------
4257
In order to test locally with [PhantomJS](http://phantomjs.org/), you'll need to either have it installed globally, or relative to your project. For global install see the [PhantomJS download page](http://phantomjs.org/download.html). For relative install run: `npm install --save-dev phantomjs`.

0 commit comments

Comments
 (0)