Mastering Playwright for Test Automation

Playwright

Course Description:

This course aims to provide participants with comprehensive knowledge and hands-on experience in using Playwright for test automation. Covering everything from the basics to advanced topics, this course will equip participants with the skills necessary to create robust and efficient automated tests for web applications.

Course Objectives:

– Understand the fundamentals of Playwright and its architecture.
– Learn how to set up and configure Playwright.
– Gain proficiency in writing, running, and debugging Playwright tests.
– Explore advanced features such as parallel execution, network interception, and custom test frameworks.
– Integrate Playwright with CI/CD pipelines and other tools.

Module 1: Introduction to Playwright

1. Overview of Playwright

  • What is Playwright?
  • Key features and benefits
  • Comparison with other test automation tools

2. Setting Up Playwright

  • Installing Playwright
  • Setting up a project
  • Introduction to Playwright CLI

3. Getting Started with Playwright

  • Creating your first test
  • Understanding the Playwright API
  • Running and debugging tests

4. Hands-On Lab

  • Setting up a Playwright environment
  • Writing and running basic tests

Module 2: Core Concepts and Test Authoring

1. Selectors and Locators

  • Using Playwright selectors
  • Playwright element identification
  • Best practices for element selection

2. Handling User Interactions

  • Simulating clicks, typing, and other interactions
  • Handling forms and inputs
  • Managing mouse and keyboard actions

3. Assertions and Verifications

  • Built-in assertions
  • Custom assertions
  • Handling waits and synchronization

4. Hands-On Lab

  • Writing tests with different selectors
  • Simulating user interactions
  • Implementing assertions and verifications

Module 3: Advanced Playwright Features

1. Working with Different Web Controls

  • Handling different types of web controls
  • Managing multiple browser windows and tabs

2. Network Interception and Mocking

  • Intercepting network requests
  • Mocking API responses
  • Simulating network conditions

3. Parallel Test Execution and Test Isolation

  • Running tests in parallel
  • Isolating tests for reliability
  • Managing browser contexts

4. Hands-On Lab

  • Handling different types of web elements
  • Intercepting and mocking network requests
  • Configuring and running parallel tests

Module 4: Test Frameworks and Customization

1. Custom Test Frameworks

  • Building a custom test framework with Playwright
  • Using inbuilt and external reporting tools
  • Structuring test projects

2. Extending Playwright

  • Writing custom commands and utilities
  • Creating reusable components
  • Extending Playwright capabilities

3. Integrating with CI/CD Pipelines

  • Setting up Playwright in CI/CD environments
  • Using GitHub Actions, Jenkins, and other CI tools
  • Best practices for CI/CD integration

4. Hands-On Lab

  • Building a custom test framework
  • Extending Playwright with custom commands
  • Integrating tests with a CI/CD pipeline

Module 5: Real-World Scenarios and Best Practices

1. Cross-Browser Testing

  • Running tests on different browsers
  • Handling browser-specific issues
  • Best practices for cross-browser testing

3. Debugging and Troubleshooting

  • Debugging techniques
  • Handling common issues
  • Optimizing test performance

4. Capstone Project

  • Applying learned skills in a comprehensive project
  • Designing and implementing a test suite for a sample application
  • Presenting the project and discussing the approach

– Basic understanding of JavaScript or TypeScript.
– Familiarity with web development concepts.
– Some knowledge of test automation is beneficial but not required.

We offer a range of training delivery options. Whichever option you chose we’re always dedicated on delivering an engaging and immersive learning experience.

On-site: we deliver on-site training for organizations seeking a tailored learning experience for their teams. Our expert trainers can conduct the course at your company’s premises, allowing for a highly customized training program that addresses your specific requirements. On-site training promotes team collaboration and fosters a shared understanding of SpecFlow within your organization.

Live Online: we offer live training sessions conducted virtually (usually using MS Teams). Participants can join scheduled sessions where they can interact with instructors in real-time, ask questions, and collaborate with fellow learners. This option combines the flexibility of online training with the benefits of live interaction.

Course Materials:
– Access to a Playwright test environment
– Course slides and notes
– Supplementary reading materials and resources
– Access to a course discussion forum

Assessment:
– Quizzes at the end of each module
– Hands-on labs and assignments
– Capstone project review
– Certification of completion upon successful course completion

This syllabus is designed to provide participants with a thorough understanding and practical experience with Playwright for test automation, enabling them to create and manage automated tests effectively.

Need More Course Info?

We run regular Jenkins training courses that are designed specifically for testers and test automation engineers. Find out more...

Need More Course Info?

OR 
 
Call : 0208 144 4211

Who are these courses for?

  • Testers who need to automate repetitive QA processes that should be running on auto pilot
  • Testers who want to get in to automation and need a solid framework within which to operate
  • Test Automation engineers who need to build out a continuous testing framework with tools like Selenium

This is a course designed, written and presented by a tester for testers. No airy-fairy theory. Just practical solutions and techniques for every day QA challenges.