Protractor v1.1.0 Release Notes
-
๐ Features
- (316961c) feat(runner/hosted): add support for promises for seleniumAddress and capabilities
Change driverProviders/hosted to resolve promise values in configuration to allow async jobs in setup. Specifically, seleniumAddress, capabilities, and multiCapabilities may be promises. Primarily, this would be for a network call to acquire a selenium host or to start a proxy server.
- (953faf7) feat(runner): allow onPrepare functions to return a promise
If onPrepare is a function which returns a promise (or a file which exports a promise), the test runner will now wait for that promise to be fulfilled before starting tests.
- (6de2e32) feat(runner): Add support for async onCleanUp functions
If the onCleanUp function returns a promise, the process will allow it to resolve before exiting. This is useful for performing async operations like writing to a file or calling an API at the end of a test run.
- (cd575ee) feat(sauce provider): allow for custom server addresses when running against SauceLabs.
Use
config.sauceSeleniumAddress
to connect to a custom URL for Sauce Labs.- (1b16c26) feat(suites): allow more than one suite from the command line
Allow a comma-separated list of suites be provided on the command line, like
--suite=suite1,suite2
- (25cf88c) feat(ElementArrayFinder): keep a reference to the original locator
๐ Bug Fixes
- (d15d35a) fix issue where ElementFinder.then does not return a promise
See https://github.com/angular/protractor/issues/1152
- (9e36584) fix(webdriver-manager): removed ssl on chromedriver url for consistency
Other URLs use http, make chromedriver use this as well.
- (0da1e0c) fix(protractor): add dummy isPending function
See https://github.com/angular/protractor/issues/1021
- (9814af1) fix issue where color formatting text is leaking
See https://github.com/angular/protractor/issues/1131
- (8f1b447) fix(launcher): fix issue where test passes on unexpected failures