Playwright Beginner Tutorial 4 | How to write 1st Test
Automation Step by Step
@raghavpalAbout
Simple Basic Beginners Step-by-Step tutorials ❤️ I create videos on Automation, Testing, DevOps, CI and related tools, technologies and platform Raghav is a teacher and founder of AutomationStepByStep.com He was an Automation Architect and has led multiple teams of Automation and DevOps Engineers. For over a decade, Raghav witnessed, worked, and delivered multiple Automation Testing Projects and worked with some awesome people in this industry ► https://automationstepbystep.com/ Some topics covered: - Jenkins - JMeter - Selenium - Appium - Cypress - Playwright - Katalon Studio - API Testing - Postman - Docker - Kubernetes - Other DevOps topics Words from Raghav We often need someone to hold our hand and help us take the first few steps before we learn to walk and run. I am on a mission to spread education and make it available to anyone willing to learn Never Stop Learning Raghav All education here is FREE FOR ALL, FOREVER Share with as many people as you can in your lifetime
Video Description
▬ ALL FREE COURSES ► https://automationstepbystep.com/ ▬ QUIZ - https://forms.gle/4CSRsrZxre53UGMn7 00:00 Intro 00:46 Step 1 - Create a new file under test folder 02:15 Step 2 - Add module ‘playwright/test’ const { test, expect } = require('@playwright/test'); 05:35 Example how to add and import modules 12:48 Playwright Test provides a test function to declare tests and expect function to write assertions 13:10 Step 3 - Create a test block - test(title, testFunction) test('My First Test', async ({page}) => { await page.goto('https://google.com'); await expect(page).toHaveTitle('Google'); }) 17:20 The keyword async before a function makes the function return a promise The keyword await before a function makes the function wait for a promise 24:14 Screenshot moment ▬▬ ASK RAGHAV ► https://bit.ly/2CoJGWf #playwright #automation #testing ▬▬ CI CD DEVOPS ▬▬ JENKINS BEGINNER ► https://bit.ly/2MIn8EC JENKINS TIPS & TRICKS ►https://bit.ly/2LRt6xC JENKINSFILE ► https://bit.ly/3JSMSZ7 DOCKER ► https://bit.ly/2MInnzx KUBERNETES ► http://bit.ly/2MJIlMK ▬▬ UI TESTING ▬▬ SELENIUM BEGINNERS ► https://bit.ly/2MGRS8K SELENIUM JAVA FRAMEWORK ► https://bit.ly/2N9xvR6 SELENIUM PYTHON ► https://bit.ly/2oyMp5x SELENIUM TIPS ► https://bit.ly/2owxc50 SELENIUM BUILDER ► https://bit.ly/2MKNtlq SELENIUM 4 ► https://bit.ly/3AiJOlP KATALON STUDIO ► https://bit.ly/2wARFdi ROBOT FRAMEWORK with RIDE ► https://bit.ly/2Px6Ue9 ROBOT FRAMEWORK with Eclipse► http://bit.ly/2N8DZxb PROTRACTOR ► http://bit.ly/2KtqVkU ACCELQ ► https://bit.ly/3PlsAsh TEST PROJECT ► http://bit.ly/2DRNJYE CUCUMBER BDD ► https://bit.ly/3Cnno4z CYPRESS ► https://bit.ly/3PpEukM XPATH & WEB LOCATORS ► https://bit.ly/3PpEvoQ ▬▬ API TESTING ▬▬ WEB SERVICES (API) ► https://bit.ly/2MGafL7 SOAPUI ► https://bit.ly/2MGahmd POSTMAN ► https://bit.ly/2wz8LrW POSTMAN 2022 ► https://bit.ly/3JWm4qX JMETER API TESTING ► https://bit.ly/3AgVPar GENERAL ► https://bit.ly/2PYdwmV KATALON STUDIO API ► https://bit.ly/2BwuCTN REST ASSURED ► https://bit.ly/3zUdhRD KARATE API ► https://bit.ly/3w3H5Ku API MOCKING ► https://bit.ly/3bYPsjS ▬▬ MOBILE TESTING ▬▬ APPIUM ► https://bit.ly/2ZHFSGX MOBILE TESTING ►https://bit.ly/2PxpeUv ▬▬ PERFORMANCE TESTING ▬▬ JMETER BEGINNER ► https://bit.ly/2oBbtIU JMETER INTERMEDIATE ► https://bit.ly/2oziNVB JMETER ADVANCED ► https://bit.ly/2Q22Y6a JMETER TIPS & TRICKS ► https://bit.ly/2NOfWD2 PERFORMANCE TESTING ► https://bit.ly/2wEXbLS GATLING ► https://bit.ly/3QrWfkV ▬▬ IDE ▬▬ ECLIPSE ► https://bit.ly/3AnRhQP INTELLIJ IDEA ► https://bit.ly/3AnyDZ8 Visual Studio Code ► https://bit.ly/2V15yvt ▬▬ PROGRAMMING ▬▬ JAVA BEGINNERS ► https://bit.ly/2PVUcXs JAVA TIPS & TRICKS ► https://bit.ly/2CdcDnJ GROOVY ► https://bit.ly/2FvWV5C JAVASCRIPT ► http://bit.ly/2KJDZ8o TYPESCRIPT ► https://bit.ly/3dvJBmz PYTHON ► http://bit.ly/2Z4iRye RUBY ► https://bit.ly/3JRRmzf ▬▬ BUILD TOOLS ▬▬ MAVEN ► https://bit.ly/2NJdDRS GRADLE ► http://bit.ly/30l3h1B ▬▬ SOURCE CODE MANAGEMENT ▬▬ GIT & GITHUB ►https://bit.ly/2Q1pagY GITLAB ► http://bit.ly/2kQPGyQ ▬▬ CLOUD SERVICES ▬▬ BROWSERSTACK ► https://bit.ly/3w7kxZn SAUCELABS ► https://bit.ly/3w7kAo1 LAMBDATEST ► https://bit.ly/3C6TBwM ▬▬ DATA FORMATS ▬▬ JSON ► https://bit.ly/3w450tq XML ► https://bit.ly/3PqRneH ▬▬ VIRTUALIZATION ► http://bit.ly/2SItIL9 ▬▬ MOCK INTERVIEWS ► https://bit.ly/3QGwwVJ ▬▬ ▬▬ OTHERS ▬▬ TOOLS & TIPS ► https://bit.ly/2oBfwoR QnA FRIDAY ► https://bit.ly/2NgwGpw SUNDAY SPECIAL ► https://bit.ly/2wB23BO ▬▬ RAGHAV PAL ▬▬ GITHUB PROJECTS ► https://github.com/Raghav-Pal/ CORPORATE TRAINING ► https://automationstepbystep.com/corporate-training/ STORIES BY RAGHAV ► https://automationstepbystep.com/stories/ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you You can support my mission for education by sharing this knowledge and helping as many people as you can If my work has helped you, consider helping any animal near you, in any way you can NEVER STOP LEARNING Raghav Pal
Upgrade Your iPhone Experience
AI-recommended products based on this video

SURPHY Silicone Case Compatible with iPhone 13 Case 6.1 inch (2021), with Camera Protection Liquid Silicone Soft Gel Rubber Phone Case Cover with Microfiber Lining (Pink) Global Recycled Standard

JETech Silicone Case for iPhone 13 6.1-Inch, Silky-Soft Touch Full-Body Protective Phone Case, Shockproof Cover with Microfiber Lining (Black)

GuaGua Case for iPhone 13 6.1 Inch Liquid Silicone Soft Gel Rubber Slim Thin Microfiber Lining Cushion Texture Cover Shockproof Protective Anti-Scratch Phone Case for iPhone 13 2021 Yellow

JETech Case for iPhone 13 Pro 6.1-Inch, Non-Yellowing Shockproof Phone Bumper Cover, Anti-Scratch Clear Back (Clear)

Magnetic Wireless Charger for iPhone - 3 in 1 Mag-Safe Charging Station for Multiple Devices Apple - Charger Stand Dock for Apple Watch iPhone 16 15 14 13 12 Pro Max Plus Airpods

4-in-1 Wireless Magnetic Power Bank 10800mAh Portable Charger with iWatch Charger, QC4.0+20W PD Fast Charging USB C Battery Pack for Magsafe, iPhone 16/15/14/13/12 Series, Apple Watch etc. (White)

eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

Wireless Charging Case for AirPods Pro 1st / 2nd Gen with Type-C Charging Port, Compatible with AirPod Pro 2nd Generation Replacement Case, with Blue-Tooth Sync Button, No Earbuds

Cleaner Kit for Airpods Pro 1 2 3 Multi-Function Cleaning Pen with Soft Brush Flocking Sponge for Bluetooth Earphones Case Cleaning Tools White

Apple AirPods Pro 2 Wireless Earbuds, Bluetooth Headphones, Active Noise Cancellation, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

Wireless Charger, 3 in 1 Charging Station, Fast Charging Station Foldable Charging Stand, Wireless Charging Station for Multiple Devices, Compatible with lPhone 17/16/15/14/13 Pro Max Airpods Watch

soundcore P31i by Anker, Real-Time Adaptive Noise Cancelling, Hi-Res Sound, Translation Earbuds, 50H Playtime, Wireless Earbuds, Bluetooth Earphones, Spatial Audio, Fast Charging, IP55 ClimatePartner certified
![Spigen Case for Galaxy S25 Case, Rugged Armor MagFit [Fast Wireless Charging] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/81osE87mFrL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for Galaxy S25 Case, Rugged Armor MagFit [Fast Wireless Charging] Compatible with MagSafe - Black
![Spigen Case for iPhone 16 Pro Max Case, Rugged Armor [MagFit] Compatible with MagSafe - Matte Black](https://m.media-amazon.com/images/I/71Gh0VOQtlL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 16 Pro Max Case, Rugged Armor [MagFit] Compatible with MagSafe - Matte Black
![[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard](https://m.media-amazon.com/images/I/714PYxCQxbL._AC_UL960_FMwebp_QL65_.jpg)
[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard

Spigen Case for iPhone 15, iPhone 14, and iPhone 13, Ultra Hybrid MagFit Designed for Apple iPhone 15/14/13 - Crystal Clear

Apple iPhone 13 (128 GB) - (Product) RED

2Pack 10ft iPhone Charger 90 Degree Lightning Cable Right Angle Long USB Charging Cord Compatible with Apple iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad iPod

iPhone Charger Cord Lightning Cable (Apple MFi Certified) 6/6/10ft 3 Pack iPhone Cable Fast Charging Long Apple Charger Cable for iPhone 13 13 Pro 12 Pro 11 SE Max XS XR X, iPad Mini Air, iPod, AirPod
![[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard](https://m.media-amazon.com/images/I/714PYxCQxbL._AC_UL960_FMwebp_QL65_.jpg)
[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard

soundcore P31i by Anker, Real-Time Adaptive Noise Cancelling, Hi-Res Sound, Translation Earbuds, 50H Playtime, Wireless Earbuds, Bluetooth Earphones, Spatial Audio, Fast Charging, IP55 ClimatePartner certified

soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App

Anker Nano USB C Wall Charger,45W Fast Charging Smart Display Charger,with 180°Foldable Plug,Smart Recognition,Built-in Care Mode,for iPhone17/16/15 (Non-Battery,One USB-C Port,No Cable Included) ClimatePartner certified

soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones, Wireless Over-Ear Bluetooth, 40H Long ANC Playtime, Hi-Res Audio, Big Bass, Customize via an App, Transparency Mode, Ideal for Travel
![MRGLAS 2025 Upgraded Magsafe Car Mount Vacuum Suction Magnetic Phone Holder Car, 360° Foldable Adjustable Suction Cup Phone Stand [89+LBS Suction & 2800gf Magnetic] for Car Accessories iPhone17/16](https://m.media-amazon.com/images/I/71UbeT7ccLL._AC_UL960_FMwebp_QL65_.jpg)
MRGLAS 2025 Upgraded Magsafe Car Mount Vacuum Suction Magnetic Phone Holder Car, 360° Foldable Adjustable Suction Cup Phone Stand [89+LBS Suction & 2800gf Magnetic] for Car Accessories iPhone17/16

for Magsafe Car Mount【20 Strong Magnets 】Magnetic Phone Holder for Car Phone Holder Mount Dash【360°】Cell Phone Mount for Car Accessories,Car Mount for iPhone 16 Pro Max 15 14 13 12 Plus MagSafe Cases
![Phone Holder Car for Magsafe Car Accessories [78+LBS Hyper Suction & 4400gf Strongest Magnetic] 360°Adjustable Car Phone Holder Mount, Phone Holders for Car/Gym/Mirror for iPhone 16 Pro Max & Android](https://m.media-amazon.com/images/I/81ashue+DaL._AC_UL960_FMwebp_QL65_.jpg)
Phone Holder Car for Magsafe Car Accessories [78+LBS Hyper Suction & 4400gf Strongest Magnetic] 360°Adjustable Car Phone Holder Mount, Phone Holders for Car/Gym/Mirror for iPhone 16 Pro Max & Android
![[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard](https://m.media-amazon.com/images/I/714PYxCQxbL._AC_UL960_FMwebp_QL65_.jpg)



















