Playwright Beginner Tutorial 4 | How to write 1st Test

Published: 01 September 2022
on channel: Automation Step by Step
99,570
871

▬ 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/corp...

STORIES BY RAGHAV ► https://automationstepbystep.com/stor...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

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


Watch video Playwright Beginner Tutorial 4 | How to write 1st Test online without registration, duration hours minute second in high quality. This video was added by user Automation Step by Step 01 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 99,57 once and liked it 87 people.