forked from angular/protractor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(restart):
browser.restart
should return a promise
Also allows `browser.restart` to work when the control flow is disabled, and fixes it for forked browsers. Closes angular#3899 and angular#3896
- Loading branch information
Showing
3 changed files
with
80 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {promise as wdpromise} from 'selenium-webdriver'; | ||
|
||
export function usePromiseManager() { | ||
if ((wdpromise as any).USE_PROMISE_MANAGER !== undefined) { | ||
return (wdpromise as any).USE_PROMISE_MANAGER; | ||
} else { | ||
return !!wdpromise.ControlFlow; | ||
} | ||
} |