playwright-demos
playwright-demos copied to clipboard
playwright for scrapping and UI testing / automate testing workflows
playwright-demos
Playwright is a Node library to automate the Chromium, WebKit and Firefox browsers with a single API. It enables cross-browser web automation that is ever-green, capable, reliable and fast.
Found this project useful?
If you found this project useful, then please consider giving it a ⭐️ on Github and sharing it with your friends via social media.
Prerequisites
If you are new to node.js, first install node.js >= 10.15.0
Run the Repo app locally
-
git clone
https://github.com/nmanikiran/playwright-demos.git
-
cd
playwright-demos
&&npm install
-
npm start | yarn start | node
<filename>.js
Examples
-
Launch Webpage
-
Web Page Content
-
Web page Screnshot
-
Access DOM
-
Create Webpage PDF
-
Mobile Emulation
-
Web Workers list
-
Frame(s)
-
Color scheme change
-
Cookies
-
File Upload
-
Accessibility
- Webpage Accessibility
- Accessibility Report
-
Performance
- Page load time(s)
- Timeline
- Page Metrics
- JS Code Coverage
- Frame rate
-
Network
- Log Newtwork Calls
- Intercept XHR with Mock
-
PWA
- Disable Javascript
- Offline
- Lighhouse / Audit
-
Scraping
- TodoMvc Meta Data
- IMDB Movie List
- Amazon Price Tracker
- Infinite Scroll Data
-
CDPSessions
- Play back Rate
-
Automation / E2E
- Multi Step Form Submittion
-
Visual Testing
- Record video
TODO
- Add test cases
- image snapshot tests
- Improve Docs
Contributing
Awesome! Contributions of all kinds are greatly appreciated. To help smoothen the process we have a few non-exhaustive guidelines to follow which should get you going in no time.
Using GitHub Issues
- Feel free to use GitHub issues for questions, bug reports, and feature requests
- Use the search feature to check for an existing issue Include as much information as possible and provide any relevant resources (Eg. screenshots)
Created & Maintained By
Mani Kiran | @nmanikiran
Feel free to reach out to me through @nmanikiran if you have any questions or feedback! 😊