diff --git a/doc/admin/installation.rst b/doc/admin/installation.rst index 8011c693baea1f598edba36a139727f13d180fe5..3bf7ce19ccc065b9eca9aae3733ecde312f4861b 100644 --- a/doc/admin/installation.rst +++ b/doc/admin/installation.rst @@ -288,6 +288,27 @@ For example, to add the test file ``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 ======================== diff --git a/protractor-conf.js b/protractor-conf.js index 3a546abfb6d1b50a39b553c3108215fa109987d9..b775b755b9dd6fadfa6f49e7e6991e5e596b7824 100644 --- a/protractor-conf.js +++ b/protractor-conf.js @@ -7,6 +7,16 @@ exports.config = { ], 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 notify: false,