Playwright with Javascript | How To Create and Run Tests | Part 3
About
No channel description available.
Video Description
Step 1 - Create a new file under test folder Step 2 - Add module βplaywright/testβ const { test, expect } = require('@playwright/test'); ** test, expect ------ functions from @playwright/test module Playwright Test provides a test function to declare tests and expect function to write assertions Step 3 - Create a test block - test(title, testFunction) 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 Step 4 - Run the test npx playwright test --project=chromium --headed FirstTest.spec.js npx playwright test runs all tests on all browsers in headless mode npx playwright test MyTest1.spec.js runs a specific test file npx playwright test MyTest1.spec.js MyTest2.spec.js runs the files specified npx playwright test -g "test title" runs test with the title npx playwright test --project=chromium runs on specific browser npx playwright test --headed runs tests in headed mode npx playwright test --debug debug tests npx playwright test example.spec.js --debug debug specific test file ######################################### π Udemy Courses π¨βπ»π©βπ» ########################################## π’ Playwright with TypeScript ππ π https://www.udemy.com/course/learn-playwright-web-api-testing-with-typescript/ π‘ Playwright with JavaScript ππ π https://www.udemy.com/course/learn-playwright-with-javascript π€ Generative AI for Software Testing π§ π‘ π https://shorturl.at/Uk2eM π§ͺ Manual Testing + Agile with Jira Tool πβοΈ π https://www.udemy.com/course/learn-manual-software-testing-with-live-project-jira-tool π» Selenium with Java + Cucumber π₯β π https://www.udemy.com/course/learn-selenium-with-java-live-project π Selenium with Python & PyTest ππ§ͺ π https://www.udemy.com/course/learn-selenium-with-python-d/ π€ Selenium with Python using Robot Framework π€π π https://www.udemy.com/course/learn-selenium-with-python-using-robot-framework π API Testing (Postman, RestAssured & SoapUI) ππ§ π https://www.udemy.com/course/learn-selenium-with-python-using-robot-framework/ π Web & API Automation using Cypress with JavaScript π»π§¬ π https://www.udemy.com/course/learn-cypress-with-typescript/ π JMeter - Performance Testing ππ π https://www.udemy.com/course/learn-jmeter-m/learn/ π§© SDET Essentials (Full Stack QA) π§ π π https://www.udemy.com/course/learn-sdet-essentials/ π± Appium - Mobile Automation Testing π²π§ͺ π https://www.udemy.com/course/learn-appium-latest-1110-mobile-automation-testing/ β Java Collections ππ π https://www.udemy.com/course/learn-java-collections/ π₯ Cucumber BDD Framework ππ¬ π https://www.udemy.com/course/learn-cucumber-bdd-framework π οΈ Protractor with JavaScript π§π π https://www.udemy.com/course/learn-protractorangular-testing-with-javascript/
Build Your Own Catapult Today!
AI-recommended products based on this video

Brita Stainless Steel Premium Filtering Water Bottle, BPA-Free, Reusable, Insulated, Replaces 300 Plastic Water Bottles, Filter Lasts 2 Months or 40 Gallons, Includes 1 Filter, Carbon - 20 oz.

Figure 8 Fitness Resistance Band 3 Pcs, Elastic Rope Stretch Bands for Working Out, Foot, Leg, Arm, Back, Chest, Portable Home Office Training Exercise Stretcher for Yoga Pilates Physical Therapy

Celestica Neck Tape, Instant Lift Neck Tape, Lift Tapes Invisible Behind neck, for Necks Face Jaw,4PCS Elastic Bands 20PCS Replacement Tapes (1)

6-Tube Pedal Resistance Band, Premium Elastic Tension Rope for Full Body Workout, Natural Latex Fitness Bands for Strength Training,Yoga Stretching Slimming Training, Home Gym Exercise Equipment

Stylish Safety Glasses, Clear Anti-Fog Anti-Scratch Protective Glasses For Men And Women




















