Microsoft Playwright Training from Edgewords

Playwright is a fantastic web testing tool from Microsoft. Being fully supported by Microsoft and with highly experienced developers (originally from Google as developers of Puppeteer) this automated testing tool provides some great benefits over its competition:Playwright Logo
  • Fast deployment, with everything you need. Playwright is available as a simple API, or as a complete framework with a recorder, inspector, Test Framework, Assertion Library, Browsers and Video/Screenshot recording.
  • Multi-platform, Multi-browser – The only tool that lets you run WebKit (used by Safari, iOS) Browser on your Windows machine. Playwright includes Chromium, Firefox & WebKit. It is available on Windows, Mac & Linux
  • Very fast test execution
  • Easy to use, with tools to record actions, and also to locate web elements
  • Easy integration into Continuous Integration Tools, it even includes a GitHub action to execute tests in the cloud through GitHub!
  • As well as GUI testing, it includes API Testing
  • Shadow-DOM piercing
  • Parallel Execution by Default
  • Sharding – Speed up your testing running tests across multiple machines

Playwright is available in JavaScript/TypeScript, C#, Java & Python. On our course, we use TypeScript which runs on NodeJS.

It is open source and free!

Our Training Course

Designed for newcomers to Playwright, our course covers everything you need to know to become proficient at writing test cases in Playwright.

On the course, we focus on Playwright Test, using Visual Studio Code and TypeScript.

The course is online, live, instructor-led, and incorporates a comprehensive e-workbook for the course. In between each online session we give you practical exercises for you to have a go at. The sessions are recorded, so you can review them later, and we also provide resources through GitHub projects.

Course Delivery and Duration

The course is delivered online, instructor-led (VILT) over 5 days, with each day being approximately 3.5 hours training. It can also be delivered on-site, classroom-based and this is over 3 full days.

Platform

We use Microsoft Teams for delivery, which can be accessed from a web browser. Playwright can be run on Windows, Linux or Mac, and the course relates to all three platforms.

Pre-requisites

Some JavaScript/TypeScript knowledge would be useful, but we do have an optional JavaScript & TypeScript primer chapter if you are new to the world of JavaScript. We can also email you the setup instructions before the course so you can setup Playwright Test in readiness.

Course Overview

Introduction
  • What is Playwright
  • Technology stack, Web Browsers supported
Visual Studio Code IDE
  • IDE Requirements,
  • NodeJS, NPM,
  • Installing & configuring VS Code,
  • Executing JavaScript in VS Code
Playwright Test Runner Setup
  • Frameworks,
  • Installing Playwright-Test,
  • Creating your first Playwright Test
Recording
  • Recording Scripts with the Inspector
Playwright Config
  • Config file options,
  • Config precedence,
  • baseURL, Web Browser options,
  • Browser Navigation,
  • Project definitions.
Locators
  • Chrome Development Tools,
  • Using ID, Class & CSS, Text, XPath Chrome extensions,
  • Playwright Inspector,
  • Scoping Elements,
  • Regular Expressions
Actions
  • Common Playwright Actions
Assertions
  • Assertion Libraires,
  • Web Elements,
  • Page Assertions,
  • Locators vs. Element Handles
Capturing Element Attributes
  • Specific Methods,
  • Generic Methods for capturing data from the Web Application.
Synchronisation (Waits)
  • Autowait,
  • Local Timeouts,
  • Test Spec Timeout,
  • Global Timeout Config,
  • Static Waits
Screenshots
  • Capturing Screenshots, Video & PDFs.
  • Image Validation
Debugging
  • Browser Settings,
  • VS Code Node Debugger,
  • Playwright Test Debugger with Inspector,
  • Trace Mode
API Testing
  • The Request Fixture,
  • executing API tests against a REST Server
Hooks & Test Annotations
  • Grouping Tests into Test Suites,
  • Skipping Tests,
  • Using Filter Tags,
  • Hooks
Reporters
  • Built-in Reporters,
  • Allure-Playwright
CLI Options
  • Command-line Execution
Parallelism & Sharding
  • Executing tests in Parallel,
  • Sharding across machines

Extras

Storage States
  • Capturing login storage state and re-using in other tests
Page Object Model
  • What is the POM?, how to implement it into Playwright-Test
GitHub Actions
  • Executing tests automatically against GitHub VMs

How to Book

Please either phone +44 (0)333 939 8884, or email tom.millichamp@edgewords.co.uk

Private courses can be arranged at a date & time to suit, and are for up to 10 delegates.