Skip to content
Snippets Groups Projects
Commit 4995fc6f authored by jaden's avatar jaden
Browse files

docs section about multi-browser testing, #29

parent d8c42c2f
No related branches found
No related tags found
1 merge request!223Reports overhaul
...@@ -288,6 +288,27 @@ For example, to add the test file ``example-spec.js``: ...@@ -288,6 +288,27 @@ For example, to add the test file ``example-spec.js``:
'example-spec.js' 'example-spec.js'
], ],
Overriding Protractor's browser choices
=======================================
In ``protractor-conf.js``, add a ``multiCapabilities`` option in the following format:
.. code:: javascript
multiCapabilities: [
{
browserName: '<browser name 1>'
},
{
browserName: '<browser name 2>'
},
...
]
.. note::
You may need to download your browsers' WebDrivers separately - see `the official Selenium docs <https://seleniumhq.github.io/docs/wd.html#quick_reference>`_.
Writing Protractor tests Writing Protractor tests
======================== ========================
......
...@@ -7,6 +7,16 @@ exports.config = { ...@@ -7,6 +7,16 @@ exports.config = {
], ],
allScriptsTimeout: 60000, allScriptsTimeout: 60000,
// to override the default browser that Protractor uses:
// give a list of browsers to use (firefox, chrome, safari, etc.)
// e.g.:
//multiCapabilities: [{
// browserName: 'firefox'
//},
//{
// browserName: 'chrome'
//}],
// disable some selenium~browser notification than can steal focus // disable some selenium~browser notification than can steal focus
notify: false, notify: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment