Comments (5)
The apis are very similar. It should mostly be replacing require(“puppeteer”) with playwright. Is something particularly painful to transition?
from playwright.
Out of interest, any reason why the new features couldn't have been added to Puppeteer with a feature flag? Is there a more fundamental re-architecture in PlayWright?
from playwright.
Would you have time to make a codemod?
from playwright.
Playwright is cross-browser and Puppeteer was only done for Chrome. Not all the Puppeteer APIs and abstractions made sense for cross-browser story. Playwright aims at testing: we wait for elements to be interactable when we click, etc. That's a significant change in philosophy, so maintaining the API would be misleading.
I don't think we will be providing a conversion utility, but there already are migration guides available in the wild: https://medium.com/@davert/puppeteer-to-playwright-migration-guide-6c86ea66e85e
from playwright.
Playwright is cross-browser and Puppeteer was only done for Chrome. Not all the Puppeteer APIs and abstractions made sense for cross-browser story. Playwright aims at testing: we wait for elements to be interactable when we click, etc. That's a significant change in philosophy, so maintaining the API would be misleading.
I don't think we will be providing a conversion utility, but there already are migration guides available in the wild: https://medium.com/@davert/puppeteer-to-playwright-migration-guide-6c86ea66e85e
The author deleted the Medium article referred to above
from playwright.
Related Issues (20)
- [Bug]: Launching chromium crashes on CI pipeline but works locally HOT 3
- [Feature]: "evaluating" mode (failed + ignored) HOT 4
- [Bug]: Playwright 1.43.0 UI mode clears results after tests finished executing HOT 1
- Retrieval of Playwright test results HOT 2
- Playwright test runner failed to trigger test run HOT 1
- [Bug]: HTML report create sub-step out of the previous step HOT 1
- Webkit for Mac and Windows showinf differente results HOT 1
- [Docs]: Mock API
- [Regression]: Github Actions reports zero failures, 2 flaky tests as a failed run HOT 2
- [Bug]: Executed test is not shown in UI-mode after test is completed HOT 2
- [Bug]: full page screenshot causes page duplicates HOT 1
- [Question] HARs name pattern HOT 2
- [Bug]: Issues with Protocol error (Page.navigate), page.goto: does not work HOT 1
- [Bug]: Headless mode doesn't not have the same behavior HOT 13
- [Docs]: Video HOT 3
- [REGRESSION]: Brand new install of playwright, unable to run chromium with show browser using vscode HOT 2
- [Bug]: Report's total time is incorrect HOT 5
- [Bug]: Performance issue with yarn pnp HOT 3
- [Bug]: Headless mode behavior is different than UI mode HOT 1
- [Bug]: Cannot do 'yarn create playwright --ct' without error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.