Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Playwright TypeScript Automation - Web & API
Rating: 4.6 out of 5(204 ratings)
2,508 students

Playwright TypeScript Automation - Web & API

TypeScript basics, Playwright UI & API testing, Page Objects, GitHub Actions, Playwright MCP & AI
Created byLucky Trainings
Last updated 8/2026
English
English [Auto],French [Auto],

What you'll learn

  • Learn TypeScript fundamentals required for Playwright Automation testing
  • How to locate any web element on the page using built-in selectors and custom locators
  • Playwright MCP - TypeScript
  • How to work with APIs in Playwright
  • Page Object Model
  • AI-driven test generation and management
  • Page Interactions: Automate user actions (clicks, typing, navigation) and handle frames, Webtables , Alerts, Multiple Windows
  • API Testing: HTTP requests & response validation

Course content

8 sections207 lectures24h 38m total length
  • Introduction1:05

    Learn TypeScript playwright API testing and AI script generation with Playwright, and use GitHub Copilot to create a web API test with simple examples. No prior coding experience is required.

  • Overview , Features & How to TypeScript works3:47

    Explore TypeScript, an open source, cross-platform superset of JavaScript, with type annotations and generics. See how it compiles to JavaScript and runs online or locally, with early error checks.

  • TypeScript Configuration Part 16:16

    Learn to configure TypeScript on any machine using Visual Studio Code and Node.js, install TypeScript globally with npm, verify with tsc, and choose between local compilation or an online compiler.

  • Course Material0:30

    Access the complete course material for TypeScript Playwright with AI, including test scenarios and the full folder structure, ready to download and use in future lectures.

  • Pre conditions for the Typescript Configuration3:17

    Open the code base in Visual Studio Code, explore the JS basics folder, and create files or directories to prepare the TypeScript configuration for the next session.

  • TypeScript Configuration Part 21:42

    In TypeScript configuration part 2, set up a tsconfig.json in the project root and add a config.json in the folder to enable running test scripts in upcoming sessions.

  • Configuring GITHUB Copilot2:35

    Configure GitHub Copilot in Visual Studio by installing the extension, signing in and authorizing your account, then finish setup to enable the Copilot chat and code prompts.

  • If unable to find copilot option in vscode then watch this video2:09

    Locate the GitHub Copilot extension in VSCode across versions, explore the left panel, and troubleshoot missing options with screenshot guidance or a one-on-one session.

  • Configuring GITHUB Copilot Part 24:41

    Install the GitHub Copilot extension in Visual Studio Code, sign in to GitHub and authorize Copilot, and learn how it helps write code and resolve issues across Windows and Mac.

  • Create & Execute Simple Program 15:54

    Create a basic TypeScript program in a ts basics folder, print a message with console.log, compile with tsc, and run the resulting js with node to see the output.

  • If you have issue with above video related to configuration please watch this2:33

    Clarify configuration issues by explaining folder structure, creating a code base, and TypeScript basics for the Playwright setup.

  • Create & Execute Simple Program 21:12

    Learn how to run a TypeScript file directly with ts-node in VSCode. Install ts-node, navigate to your project, and execute a print info example that outputs hello student.

  • Create & Execute Simple Program 32:52

    Uninstall ts-node and run a TypeScript file directly with modern node versions, or configure the code runner extension in VS Code to execute via the play button.

  • Primitive Datatypes - Numbers with examples11:05

    Explore primitive data types in TypeScript, show how to define number variables with practical examples, and use string, boolean, undefined, and null.

  • Primitive Datatypes - String , Boolean , Undefined, Null with examples6:15

    Define strings with single or double quotes, use boolean values, and illustrate undefined and null in TypeScript with console.log outputs and string concatenation.

  • Overview on Constants3:31

    Learn how constants enforce immutability in TypeScript by defining a constant salary of 50,000, printing it to the console, and understanding why reassigning triggers a compile-time error.

  • Overview on Operators - Arithmetic Operator with example8:11

    Learn arithmetic operators in TypeScript, applying addition, subtraction, multiplication, division, modulus, and increment and decrement to a number, with console log demonstrations.

  • Assignment Operator with example4:20

    This lecture demonstrates how assignment operators work in TypeScript with examples like plus-equals, minus-equals, multiply-equals, divide-equals, and modulus-equals applied to a numeric variable.

  • Comparison Operator with example5:17

    Explore how comparison operators in TypeScript compare values and return booleans, including equal to, not equal to, greater than, less than, and strict versus loose equality with null and undefined.

  • Logical Operator with example3:47

    Apply logical operators to boolean values to guide decisions. Use and to require both conditions true, or to return true if any condition is true, and use not to negate.

  • Ternary Operator with example5:37

    Master the ternary operator in TypeScript with practical examples, including age based adult checks and can watch movie logic, plus simple type checks.

  • Conditional Statements with example15:15

    Learn conditional statements in TypeScript with hands-on examples of if, else, else if, and nested if, using age and login checks, voting eligibility, loan rules, and salary and bonus calculations.

  • Switch Statements with example4:10

    Explore switch statements in TypeScript by mapping a day value to corresponding code blocks, using break statements and a default case, with Copilot-assisted examples.

  • For loop with example8:48

    Explore for loops, while loops, and for-each loops in TypeScript, to run code multiple times with initialization, condition, and increment, including examples like 1 to 10 and break usage.

  • While loop with example4:00

    Learn how to use while loops in TypeScript with practical examples: print 1 to 10, generate even or odd numbers up to 20 using modulus, and break at 5.

  • Do While loop & Continue with example11:21

    Explore differences between while and do while loops in TypeScript, and learn the continue statement to skip iterations with even and odd examples.

  • String methods with examples13:10

    Learn practical string methods in TypeScript with examples, including length, concat, charAt, replace, toLowerCase, toUpperCase, split, trim, startsWith, endsWith, and includes.

  • Array with examples Part 112:48

    Explore array basics in TypeScript, including single dimensional arrays and zero-based indexing. Access, print, modify elements; add or remove with push, unshift, pop, or shift; and use length for iteration.

  • Array with examples Part 211:52

    Apply key TypeScript array methods such as concat, toString, indexOf, includes, sort, slice, and splice with practical examples. Learn multiple ways to declare arrays and perform element replacement and search.

  • For each loop with example2:50

    Explore the for each loop in TypeScript, iterating over arrays to process every value automatically without manual index management, with examples using console.log.

  • Function with examples Part 110:32

    Explore how to create named and anonymous TypeScript functions, pass parameters and defaults, use return statements or void, and understand dynamic arguments and basic call patterns.

  • Function with examples Part 29:13

    Explore anonymous functions stored in a variable and called later, and learn optional parameters with question marks and defaults, noting they must follow required ones and treat undefined as ten.

  • Function Overloading with example12:57

    Explore TypeScript function overloading with a single add function of the same name for numbers or strings, a single implementation, and optional parameters with a greeting overload.

  • Arrow Function with example7:53

    Master arrow functions in TypeScript, a lambda-style anonymous function without a name or function keyword. See examples of add with two parameters and a no-parameter greeting.

  • Rest Parameters with example5:05

    Master rest parameters in TypeScript, where a function accepts multiple arguments as an array using three dots, and sum them after normal parameters.

  • Tuple with example Part 14:59

    Learn how tuples in TypeScript store a fixed number of elements in a specific order, enabling mixed or same data types and index-based access with product and student examples.

  • Tuple with example Part 26:37

    Explore extending and mutating tuples with push and pop, define optional parameters in tuple entries, and iterate over an array of tuples to log each pair.

  • Overview on Class with example Part 19:19

    Learn how a class serves as a blueprint and how to instantiate objects in TypeScript, using a student information example with a print data method to access class data.

  • Inheritance with example6:30

    Explore inheritance in TypeScript by linking classes with extends, then access parent properties and methods from a child class using a dog extending an animal example.

  • Method Overriding8:23

    Explore how a child class overrides parent methods and variables in TypeScript, using car and on road price example to show name, return type, and arguments with different logic.

  • Overview on This & Super keyword6:17

    Explore using this and super keywords in TypeScript to access current class members, call the parent constructor, and use parent methods from a child class with practical examples.

  • Constructor with Example5:43

    Learn how a constructor in a class automatically runs when creating objects with new, unlike methods that return values; pass parameters to initialize variables and access methods.

  • Overview on Class with example Part 24:24

    Learn to build a TypeScript class to manage student info with a parameterized constructor to initialize name, id, and marks, use this to assign values, and print data.

  • Access Modifiers with Examples9:14

    Explore TypeScript access modifiers—public, private, and protected—and see how they control visibility of class members, with examples of default public access, private data, and protected access in inheritance.

  • Overview on Module5:34

    Explore TypeScript modules, learn how to export and import variables, functions, and classes across files, and understand how modules prevent conflicts in real-world projects.

  • Interface with example6:11

    Learn how interfaces define a contract in TypeScript, outlining properties and methods, then implement a vehicle interface with type, wheels, and a start method in bike and car classes.

  • var vs let with example3:56

    Explain var vs let in TypeScript with examples, showing var is function-scoped and redeclarable, while let is block-scoped and non-redeclarable.

  • Knowledge check on TypeScript Basics

Requirements

  • PC/Laptop using which you can install tools and softwares
  • No additional requirements, everything is covered within the videos itself

Description

** Updated with Playwright MCP & AI Agents **


Learn Playwright TypeScript automation testing from scratch — Web UI testing, API testing, Page Object Model, GitHub Actions, and Playwright MCP.


This Playwright with TypeScript course covers:

- Playwright TypeScript setup and configuration

- Web automation testing with locators, assertions, and UI interactions

- Playwright API testing (GET, POST, PUT, DELETE)

- Page Object Model and scalable Playwright framework design

- Data driven testing, reporting, Git & GitHub Actions CI

- Playwright MCP and AI-assisted test workflows for modern QA


Best for beginners and QA engineers searching for Playwright TypeScript, Playwright automation, Playwright API testing, Microsoft Playwright, and Playwright framework training.

Course is updated on 08-December-2025 with below concepts:

  • Overview on AI

  • Overview on LLM

  • Overview on RAG

  • Overview on Generative AI

  • Overview on Memory

  • Overview on AI Agent

  • Overview on LangChain & LangGraph

  • Overview on MCP Server

  • Overview on Human In the loop , Hallucination & Guardrails

  • Overview on Fine-Tuning

  • Overview on Context

  • Overview on Prompts

  • ChatGPT vs CoPilot vs CURSOR

  • Overview on OpenAI

  • Overview on AI Models

  • Overview on n8n workflow

  • Generate API Key in OpenAI

  • Create workflow in n8n

  • Create Public Chat in n8n workflow

  • Overview on OpenAI Tokens

  • CURSOR - Create a Chrome Extension for Record & Playback

  • CURSOR - Create an OTP Shield Mobile APP

  • Generate Playwright test using Cursor Editor


Playwright Automation using TypeScript with AI from scratch

This course is designed for complete beginners in which we covered Web, API & AI automation.

If you are a complete beginner on Playwright or TypeScript this course helps you to master the tool. Very basic step by step videos to guide you from scratch


Get started with Playwright Automation .


Topics :

Introduction to Typescript & Configuration

Overview on GitHub Copilot & Configuration

TS - Hello world program

Primitive Datatypes with examples

Overview on Constants

Operators with examples

   Arithmetic Operator

   Assignment Operator

   Comparison Operator

   Logical Operator

   Ternary Operator

Overview on Conditional Statements

Switch Statements with example

Overview on loops - for , while, do-while & for-each with examples

String methods with examples

Overview on Array

Overview on Function

Function Overloading & Arrow Function

Rest Parameters

Tuple with examples

Overview on Class

Inheritance with example

Method Overriding

Overview on This & Super keyword

Constructor with Example

Access Modifiers with Examples

Overview on Module

Interface with example

var vs let with example

Overview on Playwright & installation using terminal & VSCode Extension

Create & Execute Playwright test

Debug Playwright test

Overview on Playwright configuration file

Execute Playwright test using VSCode extension & UI mode

Skip a test & ExecuteOnly options

Overview on Trace

Create a Playwright test for opening an application

Overview on locators with examples

Program to login to SauceDemo application

Page.getByRole() with example

Page.getByLabel() & Page.getByPlaceholder() with example

Page.getByTitle() & Page.getByText() with example

Page.getByAltText() & Page.getByTestId() with example

Other locators - CSS locator with examples

Overview on XPATH & Filtering with examples

Record Test using VSCode Extension | Codegen | page.pause()

Playwright Builtin Annotations

Overview on Group tests

Tag tests with example

Overview on Hooks with examples

Assertions

Overview on Auto Waiting

Overview on timeouts

How to handle text fields

How to get text from a button

How to handle Radio Buttons

How to handle Checkboxes

How to handle multiple checkboxes

How to Select value from Dropdown

How to Select values from Multi Select Dropdown

Handling Mouse Click, Type characters & Keys

Handling Frames

Handling Tooltips

Handling Drag & Drop

Handling Date Picker

Handling Webtables

How to handle Alert

Handling Auto Suggestions

How to upload files

How to capture Screenshot

How to capture videos

Execute Playwright test on Mobile Emulator

Handling Multiple Windows

Playwright configuration file - Parallel execution

E2E Scenario automation

Overview on built-in Reports with examples

Custom Reports - Allure

Overview on Page Object Model & example

Visual comparisons with examples

Overview on API & REST

GET, POST, PUT & Delete Request with examples

Reading Data from CSV File & JSON File

Handling Basic Authorization

Overview on GIT & Push Code

Overview on GitHub Actions

Overview on LLM, Prompt & MCP

Install Playwright MCP to VSCode

Create & Execute a program to launch bing using Playwright MCP

Create & Execute a program to login to saucedemo using Playwright MCP

Create Context using which Create a program to select radio button in bing

Create & Execute a program to handle multiple windows using Playwright MCP

Generate Manual Test cases by creating context

Playwright Agents Overview with example


Who this course is for:

  • Automation testers
  • QA
  • QA Leads & Architects
  • Developers