Protractor ignoreSynchronization and Angular-specific locator limits
0 reputation · 11 Jul 2021, 21:37 UTC
A Protractor suite targets a page that bootstraps Angular lazily, so automatic synchronization can hang before Angular is ready. The goal is to skip the pre-action Angular stability wait while still using Angular-specific locators such as by.model, by.binding, and by.repeater on Angular portions of the page.
Protractor controls this behavior with waitForAngularEnabled and ignoreSynchronization, but the documented behavior does not state whether disabling synchronization also disables Angular-specific locator resolution, or whether those locators require an active Angular context.
- Does ignoreSynchronization: true skip only the pre-action Angular stability wait, or does it also disable Angular-specific locators?
- When waitForAngularEnabled is false, do by.model and by.binding still require an Angular page, or do they match elements like standard WebDriver locators?
- Can ignoreSynchronization: true be combined safely with Angular-specific locators in the same session?