Playwright with Typescript and AI

Madhusudhan Reddy Vaddiboina

profile
Best Seller
Playwright with Typescript and AI
profile
Courses

MODULE 1: INTRODUCTION TO PLAYWRIGHT

CHAPTER NAME:

Introduction to Playwright

CHAPTER DESCRIPTION:

Learn the basics of automation testing, explore Playwright's capabilities and tools, understand the difference between Playwright and Selenium, discover the advantages of TypeScript over JavaScript, and get an in-depth look at Playwright's architecture.

TOPICS:

- Introduction to Automation Testing

- What is Playwright?

- Key Features of Playwright

- Playwright Tools

- Playwright vs Selenium

- JavaScript vs TypeScript

- Why Use TypeScript?

- Playwright Architecture

MODULE 2: TYPESCRIPT PROGRAMMING

CHAPTER NAME:

TypeScript Programming

CHAPTER DESCRIPTION:

Develop a strong foundation in TypeScript programming including variables, data types, operators, functions, arrays, strings, and object-oriented programming concepts. Learn advanced topics like inheritance, access modifiers, interfaces, and modules. Gain practical experience working with JSON, CSV, and Excel files for test data management.

TOPICS:

- TypeScript Introduction & Environment Setup

- Variables, Data Types, Type Annotations & Inference

- Operators, Conditional Statements & Loops

- Functions, Callbacks & Function Overloading

- Arrays, Tuples & Array Methods

- String Methods

- Objects, Classes & OOP Concepts

- Inheritance & Access Modifiers

- Interfaces & Modules

- Working with JSON, CSV & Excel Files

MODULE 3: PLAYWRIGHT AUTOMATION

CHAPTER DESCRIPTION:

Set up your first Playwright project and write your initial tests. Understand asynchronous programming patterns essential for web automation. Learn diverse locator strategies, interact with various UI elements, handle dropdowns and date pickers, manage multi-tab scenarios, and work with advanced features like iFrames, file uploads, shadow DOM, cookies, and SSL/proxy handling.

TOPICS:

- Project Setup & First Test

- Async/Await & Promises

- Running Tests & Reports

- Playwright Locators (Text, Role, Label, CSS, XPath)

- Basic Actions & Element Interactions

- Dropdowns, Tables & Date Pickers

- Browser Contexts & Multi-Tab Handling

- Dialogs, iFrames, Mouse & Keyboard Actions

- File Uploads & Shadow DOM

- Cookies, Viewports, Proxy & SSL Handling

MODULE 4: ADVANCED PLAYWRIGHT FEATURES

CHAPTER NAME:

Advanced Playwright Features

CHAPTER DESCRIPTION:

Master advanced Playwright features including auto-waiting, timeouts, and assertions. Learn debugging techniques using screenshots, videos, and trace viewer. Implement retry mechanisms for handling flaky tests. Organize tests effectively using hooks, describe blocks, tags, and annotations. Understand parallel execution and worker configuration. Implement Page Object Model pattern and conduct visual and accessibility testing.

TOPICS:

- Auto Waiting, Timeouts & Assertions

- Codegen/Test Generator

- Debugging, Screenshots & Videos

- Tracing & Trace Viewer

- Retry Mechanisms & Flaky Test Handling

- Hooks, Describe Blocks & Test Organization

- Tags & Annotations

- Parallel Execution & Worker Configuration

- Parameterization & Data Driven Testing

- Allure Reporting

- Page Object Model (POM)

- Visual Testing & Accessibility Testing

MODULE 5: FRAMEWORK DESIGN & DEVELOPMENT

CHAPTER NAME:

Framework Design & Development

CHAPTER DESCRIPTION:

Design and develop a comprehensive test automation framework following best practices. Learn framework concepts and architecture, manage project dependencies, structure your project for scalability, and configure Playwright settings. Implement Page Object Model development, error handling strategies, test data management, and integrate Faker for dynamic data generation. Set up parallel and serial test execution, integrate with Git and GitHub, configure GitHub Actions workflows, and establish Jenkins CI/CD pipelines.

TOPICS:

- Framework Concepts & Architecture

- Project Setup & Dependency Management

- Folder Structure Design

- Playwright Configuration Management

- Test Configuration Files

- Page Object Development

- Error Handling Strategies

- Test Data Management (JSON/CSV)

- Faker Library Integration

- Tags, Reports & Package Scripts

- Parallel & Serial Execution

- Git & GitHub Integration

- GitHub Actions for Playwright

- Jenkins Integration & CI/CD Pipelines

MODULE 6: API TESTING WITH PLAYWRIGHT

CHAPTER NAME:

API Testing with Playwright

CHAPTER DESCRIPTION:

Learn to perform comprehensive API testing using Playwright's built-in capabilities. Master REST API testing for all HTTP methods (GET, POST, PUT, PATCH, DELETE). Create and manage request payloads, generate dynamic data with Faker, work with path and query parameters, implement API chaining, validate responses, and authenticate using Basic Auth, Token-based, and API Key methods.

TOPICS:

- REST API Testing (GET, POST, PUT, PATCH, DELETE)

- Request Payload Creation

- Faker-Based Dynamic Data

- Path & Query Parameters

- API Chaining

- Response Validation

- Authentication Methods (Basic, Token, API Key)

MODULE 7: PLAYWRIGHT POWERED BY AI

CHAPTER NAME:

Playwright Powered by AI

TEXT CONTENT:

Stay ahead of the curve by leveraging artificial intelligence in test automation. This cutting-edge module explores generative AI fundamentals, prompt engineering, and LLM capabilities and limitations. You'll learn about AI agents and the Model Context Protocol (MCP), integrate GitHub Copilot for intelligent test generation, configure Playwright MCP in VS Code, and generate both UI and API tests using AI assistance. Understand how to manage, execute, and maintain AI-generated tests for maximum efficiency and reliability.

TOPICS:

- Basics of Generative AI

- Prompt Engineering Fundamentals

- Understanding LLMs & Their Limitations

- AI Agents & MCP (Model Context Protocol)

- GitHub Copilot Integration

- Playwright MCP Configuration in VS Code

- AI-Driven Test Generation

- Generating UI & API Tests Using Copilot + MCP

- Playwright VS Code Extension Usage

- Managing, Executing & Maintaining AI-Generated Tests

2,000