filmov
tv
What is Playwright? | Playwright with Typescript & Jest - Part 1
Показать описание
What is Playwright?
Playwright by Microsoft did start as a fork of Puppeteer
Puppeteer is a node library to automate the chromium browsers with the JavaScript API
--Capabilities:
* It spans multiple pages, domains, and iframes
* Intercept network activity for stubbing and mocking network requests
* Emulate mobile devices, geolocation, permissions
* Native input events for mouse and keyboard
* Upload & download support
Playwright enables fast, reliable, and capable automation across all modern browsers
-- Support for all browsers
* Test on Chromium, Firefox, and WebKit
* Test for mobile (device emulation)
* Headless and headful
-- Fast and reliable execution
* Auto-wait APIs (clicks, types, etc)
* Timeout-free automation
* Lean parallelization with browser contexts
* Wide variety of selectors (locators) & shadow-dom support
* Can handle single page application
-- Pre-requirements:
1. Node JS
2. VS Code Editor
Packages:
"devDependencies": {
"jest": "^26.6.3",
"jest-playwright-preset": "^1.4.5",
"playwright": "^1.8.0",
"typescript": "^4.1.3" ,
"ts-jest": "^26.5.0"},
Chapters:
00:00 Playwright
0:35 What is playwright?
2:00 Why playwright?
3:00 Playwright installation
#playwright #letcode
Playwright by Microsoft did start as a fork of Puppeteer
Puppeteer is a node library to automate the chromium browsers with the JavaScript API
--Capabilities:
* It spans multiple pages, domains, and iframes
* Intercept network activity for stubbing and mocking network requests
* Emulate mobile devices, geolocation, permissions
* Native input events for mouse and keyboard
* Upload & download support
Playwright enables fast, reliable, and capable automation across all modern browsers
-- Support for all browsers
* Test on Chromium, Firefox, and WebKit
* Test for mobile (device emulation)
* Headless and headful
-- Fast and reliable execution
* Auto-wait APIs (clicks, types, etc)
* Timeout-free automation
* Lean parallelization with browser contexts
* Wide variety of selectors (locators) & shadow-dom support
* Can handle single page application
-- Pre-requirements:
1. Node JS
2. VS Code Editor
Packages:
"devDependencies": {
"jest": "^26.6.3",
"jest-playwright-preset": "^1.4.5",
"playwright": "^1.8.0",
"typescript": "^4.1.3" ,
"ts-jest": "^26.5.0"},
Chapters:
00:00 Playwright
0:35 What is playwright?
2:00 Why playwright?
3:00 Playwright installation
#playwright #letcode
Комментарии