Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Updated documentation for ignoreSynchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
pittgoose authored and heathkit committed Apr 28, 2017
1 parent dd2ccbb commit a655d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/timeouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ Protractor waits for the `angular` variable to be present when loading a new pag
### _How to disable waiting for Angular_

If you need to navigate to a page which does not use Angular, you can turn off waiting for Angular by setting
`browser.ignoreSynchronization = true`. For example:
`browser.waitForAngularEnabled(false). For example:

```js
browser.ignoreSynchronization = true;
browser.waitForAngularEnabled(false);
browser.get('/non-angular-login-page.html');

element(by.id('username')).sendKeys('Jane');
element(by.id('password')).sendKeys('1234');
element(by.id('clickme')).click();

browser.ignoreSynchronization = false;
browser.waitForAngularEnabled(true);
browser.get('/page-containing-angular.html');
```

Expand Down

0 comments on commit a655d45

Please sign in to comment.