@@ -659,7 +659,7 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
659
659
660
660
let runWaitForAngularScript : ( ) => wdpromise . Promise < any > = ( ) => {
661
661
if ( this . plugins_ . skipAngularStability ( ) || this . bpClient ) {
662
- return wdpromise . fulfilled ( ) ;
662
+ return wdpromise . when ( null ) ;
663
663
} else {
664
664
return this . executeAsyncScript_ (
665
665
clientSideScripts . waitForAngular , 'Protractor.waitForAngular()' + description ,
@@ -717,7 +717,7 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
717
717
'return window.NG_PENDING_TIMEOUTS' ,
718
718
'Protractor.waitForAngular() - getting pending timeouts' + description ) ;
719
719
} else {
720
- pendingTimeoutsPromise = wdpromise . fulfilled ( { } ) ;
720
+ pendingTimeoutsPromise = wdpromise . when ( { } ) ;
721
721
}
722
722
let pendingHttpsPromise = this . executeScriptWithDescription (
723
723
clientSideScripts . getPendingHttpRequests ,
@@ -1171,7 +1171,7 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
1171
1171
pause ( opt_debugPort ?: number ) : wdpromise . Promise < any > {
1172
1172
if ( this . debugHelper . isAttached ( ) ) {
1173
1173
logger . info ( 'Encountered browser.pause(), but debugger already attached.' ) ;
1174
- return wdpromise . fulfilled ( true ) ;
1174
+ return wdpromise . when ( true ) ;
1175
1175
}
1176
1176
let debuggerClientPath = __dirname + '/debugger/clients/wddebugger.js' ;
1177
1177
let onStartFn = ( firstTime : boolean ) => {
0 commit comments