Pages

waitForAngularEnabled () in protractor ?

waitForAngularEnabled() in protractor ?

Protractor waitForAngularEnabled() will take boolean parameter true/false.

waitForAngularEnabled(false) ::

If value is false then protractor will not wait for Angular $http and $timeout tasks to complete before interacting with the browser. 

waitForAngularEnabled(true) ::

If value is true then protractor will wait until  Angular completes its $http and $timeout tasks.

These parameters will be used frequently when a tester working on Angular and non-angular application.

describe('Protractor - waitForAngularEnabled', function () {
beforeAll(
async function () {
await browser.waitForAngularEnabled(true);
await browser.get("https://keeplearners.blogspot.com/2018/03/Angular-elements.html");
});
});
Please comment below to feedback or ask questions.

No comments:

Post a Comment

Please comment below to feedback or ask questions.