Upgrades and deprecations
Protractor Is Deprecated: Angular E2E Alternatives and What Breaks in the Move
In short
Protractor reached end of life in August 2023, and Angular CLI 19 turned its builder into one that only reports an error. In a project with no e2e target, ng e2e now offers five ng add packages: Playwright, Cypress, Nightwatch, WebdriverIO and Puppeteer. Expect waiting to break first: Protractor waited for Angular to settle before each action, while four of the five tools document waiting for elements.
When did Protractor reach end of life, and does ng e2e still run it?
The timeline sits in the Angular team's RFC, Protractor issue #5502, opened on 5 April 2021. It proposed announcing the deprecation with Angular 12 in May 2021, ending development with Angular 15 at the end of 2022, and end of life in August 2023; a May 2021 team comment there confirmed that new projects from version 12 leave Protractor out. On npm, the latest version is still 7.0.0 from 13 May 2020.
GitHub shows the repository archived on 29 July 2024. The release notes of Angular CLI 19.0.0, published on 19 November 2024, list removing the Protractor builder and schematics as a breaking change, stating that Protractor is no longer supported and was marked end-of-life in August 2023. At the 18.0.0 tag, @angular-devkit/build-angular:protractor still runs Protractor over a dev server; at 19.0.0 the same name points to a builder that only throws an end-of-life error; the builders file at v22.0.0 has no Protractor entry.
Reading those files together, I infer that a suite run through that builder stops working at the 18 to 19 hop: the last 18.x tag, 18.2.21, still lists the runner, and 19.0.0 keeps the old code only under a private-protractor entry marked 'PRIVATE API - Do not use.' If the app is climbing one Angular major at a time, I would finish the e2e move first, so that hop has working tests.
Checked against: source 1, source 2, source 3, source 4, source 5, source 6, source 7, source 25
What does ng e2e offer when there is no e2e target?
The angular.dev end-to-end guide says ng e2e first looks for an e2e target and, if none exists, asks which package to add. The CLI source carries the same five choices, in the same order, as its missing-target list. The guide adds that nothing about them is special: ng e2e just runs whatever builder is registered as e2e, so a custom one works too. Protractor itself is absent from that page on the day I read it.
- Playwright:
ng add playwright-ng-schematics - Cypress:
ng add @cypress/schematic - Nightwatch:
ng add @nightwatch/schematics - WebdriverIO:
ng add @wdio/schematics - Puppeteer:
ng add @puppeteer/ng-schematics
How current is each ng add package on npm?
The prompt lists the five side by side, but their npm entries are years apart. The table shows each latest version, its publish date and the Angular packages it declares, read from the registry on 21 November 2026.
A declared range is a hint, not proof that a schematic fails on a newer Angular, so I would run ng add on a branch first. The same data shows two more differences. The Playwright schematic's repository field points to jfgreffier/playwright-ng-schematics rather than to Microsoft's playwright repository, while the Cypress and Puppeteer schematics sit in those projects' main repositories. And WebdriverIO's migration guide does not mention its schematic on the page I read; it works with a codemod and npx wdio config.
| Package | Latest version | Published | Angular packages declared |
|---|---|---|---|
| playwright-ng-schematics | 22.1.4 | 7 Nov 2026 | peer @angular-devkit/core ^22.0.0 |
| @cypress/schematic | 6.0.0 | 26 Aug 2026 | peer @angular/core >=21.0.0, Cypress ^16.0.0 |
| @puppeteer/ng-schematics | 0.8.0 | 12 May 2026 | dependency on @angular-devkit/core 18.1.4 |
| @nightwatch/schematics | 1.2.1 | 6 Jul 2023 | dependency on @angular-devkit/core ^15.2.4 |
| @wdio/schematics | 1.2.1 | 9 Nov 2021 | dependency on @angular-devkit/core ^12.2.0 |
Checked against: source 10, source 11, source 12, source 13, source 14, source 16, source 18
Why do tests fail once waitForAngular is gone?
Per Protractor's timeouts page, before every action it waited until the app had no pending timers or HTTP requests, which for Angular meant waiting for the zone to stabilise, with an 11-second default set by allScriptsTimeout. The RFC calls this waitForAngular the only feature still separating Protractor from selenium-webdriver, and says it uses the Testability API from @angular/core.
The replacements wait for elements instead. Playwright's guide maps waitForAngular to its auto-waiting. Cypress retries DOM queries until defaultCommandTimeout runs out. WebdriverIO waits for an element to be visible and interactable before commands such as click, keeping waitForDisplayed for rare cases. Puppeteer's schematic guide uses locators that wait for the element to show up. Waiting is not documented on the Nightwatch migration page I read.
The place I would look first is assertions that read a value once and trust the app to be idle. The Playwright and Cypress guides replace those with assertions on the element, such as await expect(locator).toHaveText() or .should('have.text', ...), and the Cypress guide's examples retry until the value matches. Playwright also documents a waitForAngular polyfill on getAllAngularTestabilities() for edge cases. For fixed sleeps left in ported Puppeteer tests, see this page.
Checked against: source 1, source 15, source 16, source 17, source 18, source 19, source 20, source 21
What happens to the control flow and forgotten awaits?
Protractor's control flow queued every WebDriver call so tests could read like synchronous code. Its pages say async/await cannot be mixed with it, ask for SELENIUM_PROMISE_MANAGER: false when you switch, and warn that a missing await can make a test fail silently and still be reported as passed.
The targets split here. Playwright prefixes almost every call with await, locator creation being an exception, and Puppeteer's examples await each locator action. Cypress works the other way: commands are queued and run serially, and they look like promises without being them, so a control-flow test becomes a chain of cy commands with no await. The RFC's first step for a selenium-webdriver move, adding async/await to drop the control flow, is groundwork I would do for any await-based target.
Checked against: source 1, source 16, source 17, source 20, source 22, source 23
Which locators and helpers need rewriting by hand?
AngularJS-only locators go first. Protractor's README already said binding and model locators do not work on Angular apps, and Playwright's cheat sheet rewrites by.model and by.repeater as attribute selectors on ng-model and ng-repeat. Puppeteer maps by.cssContainingText to its ::-p-text() selector and by.deepCss to >>>. Nightwatch keeps element(by.css(...)) as it was but swaps element.all for browser.findElements.
WebdriverIO's guide offers a codemod, @wdio/codemod for jscodeshift, applied to the config and then spec by spec; the other four guides I read do not document one. For commands with no replacement, such as submit, it prints advice instead. Component harnesses are their own item: the RFC promises unchanged harness APIs, while the Update Guide's v14 entry removes the CDK's deprecated testing/protractor entry point.
If a rewritten Playwright locator matches several elements, the strict mode page explains why the click is refused; for a Cypress query that times out, see this page.
Checked against: source 1, source 3, source 16, source 18, source 20, source 21, source 24
In what order would I move a Protractor suite?
Workspaces old enough to carry Protractor often lint with TSLint too. I would land the TSLint to ESLint move in its own branch first, so lint noise does not hide e2e failures.
- List what each spec relies on: the control flow, AngularJS locators, CDK harnesses, or
browser.waitForAngularEnabled(false)for non-Angular pages. Each needs a different fix. - Add the new tool with its
ng addcommand on a branch. The Cypress and Nightwatch schematics offer to remove Protractor and repointng e2e; since it is a prompt, I would decline until the new suite passes. - Port the config first, then the simplest spec, as WebdriverIO's guide advises, with both frameworks running side by side meanwhile.
- Replace every explicit
waitForAngularcall and one-shot read with assertions that wait for the element, as in the guides above. - Remove Protractor, its config and webdriver-manager, which the RFC lists among the packages deprecated with it, then carry on with the Angular upgrade past 18.
What else do people ask?
Which tool is closest to Protractor's API?
The RFC names selenium-webdriver, which Protractor wrapped, as the most similar, and it is not one of the five ng add choices. WebdriverIO's guide calls WebdriverIO probably the closest framework to migrate to, shaped by Protractor's design.
Sources
- GitHub, angular/protractor issue 5502, Future of Angular E2E and Plans for Protractor (RFC), fetched 2026-11-21
- npm registry, protractor metadata (latest version, publish time, deprecation message), fetched 2026-11-21
- GitHub, angular/protractor repository (archive notice and README), fetched 2026-11-21
- GitHub, angular/angular-cli release 19.0.0 notes (Protractor builder and schematics removed, breaking change), fetched 2026-11-21
- angular-cli builders.json at tag 18.0.0, fetched 2026-11-21
- angular-cli builders.json at tag 19.0.0, fetched 2026-11-21
- angular-cli builders.json at tag v22.0.0, fetched 2026-11-21
- angular.dev, End to End Testing, fetched 2026-11-21
- angular-cli source, ng e2e command (missing-target choices), fetched 2026-11-21
- npm registry, playwright-ng-schematics metadata, fetched 2026-11-21
- npm registry, @cypress/schematic metadata, fetched 2026-11-21
- npm registry, @puppeteer/ng-schematics metadata, fetched 2026-11-21
- npm registry, @nightwatch/schematics metadata, fetched 2026-11-21
- npm registry, @wdio/schematics metadata, fetched 2026-11-21
- Protractor documentation, Timeouts, fetched 2026-11-21
- Playwright documentation, Migrating from Protractor, fetched 2026-11-21
- Cypress documentation, Migrating from Protractor to Cypress, fetched 2026-11-21
- WebdriverIO documentation, From Protractor, fetched 2026-11-21
- WebdriverIO documentation, Auto-waiting, fetched 2026-11-21
- Puppeteer documentation, Puppeteer Angular Schematic (migrating from Protractor), fetched 2026-11-21
- Nightwatch developer guide, Migrating from Protractor to Nightwatch, fetched 2026-11-21
- Protractor documentation, The WebDriver Control Flow, fetched 2026-11-21
- Protractor documentation, async/await, fetched 2026-11-21
- angular.dev Update Guide recommendations data in the angular/angular repository, fetched 2026-11-21
- angular-cli builders.json at tag 18.2.21 (last 18.x tag), fetched 2026-11-21
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. This page joins Angular, Protractor, Playwright, Cypress, WebdriverIO, Puppeteer, Nightwatch and npm registry documents fetched on 21 Nov 2026. I did not migrate a suite for it. It does not cover TestCafe, selenium-webdriver on its own, Nx e2e setups, CI configuration or test speed. Found a mistake? Tell me.