Playwright with Java Tutorial Home / Video /

Playwright Java Tutorial ๐ŸŽญ | Testing Complex Web Applications With POM | Part XIV

Playwright Java Tutorial ๐ŸŽญ | Testing Complex Web Applications With POM | Part XIV

About the Video

In part 14 of the Playwright Java tutorial series, join ๐Š๐จ๐ฎ๐ฌ๐ก๐ข๐ค ๐‚๐ก๐š๐ญ๐ญ๐ž๐ซ๐ฃ๐ž๐ž (@Koushik_chat), Content Creator at LetCode, as he guides you through testing complex web applications. Learn about the Page Object Model, creating page packages, and running tests using the LambdaTest platform.

Also, gain insights about dynamic test data, parallel test execution, and crafting test scripts using TestNG. This session offers diverse ways to leverage Playwright effectively for automation. If you are a beginner or an experienced developer looking to enhance your skills in automated testing, don't miss this opportunity to deepen your understanding and proficiency with Playwright.

Video Chapters

0:00 Introduction

01:38 Agenda

03:29 Creating page package

04:56 Header Section - Page Object Model

11:41 Register Account Page - Page Object Model

17:04 Create test script using TestNG

18:41 Calling page methods

23:04 Running tests in the LambdaTest platform

27:28 Get By label concept - PW locator

38:10 Create dynamic test data

47:00 Login methods - Page Object Model

52:25 Run parallel tests using TestNG

55:19 Conclusion

Key Topics Covered

Introduction & Agenda: The video begins with a recap of previously covered topics in the Playwright with Java tutorial series, setting the stage for combining those learnings to automate test cases more effectively.

Creating Page Packages: Demonstrates organizing test scripts using the Page Object Model (POM) by creating separate packages for different pages or components of a web application, improving test maintenance and readability.

Header Section - Page Object Model: Shows how to create a reusable component for the header section of a webpage, enabling actions like navigating to the registration or login page through a shared header component across tests.

Register Account Page - Page Object Model: Walks through automating the registration process of an account on a webpage using POM, detailing how to fill out forms and submit data.

Creating Test Scripts using TestNG: Introduces creating test scripts with TestNG, a testing framework that supports annotations, grouping, sequencing tests, and more, to enhance the automation suite.

Calling Page Methods: Illustrates how to utilize methods from the page classes created with POM in test scripts to perform actions like clicking and form submissions.

Running Tests in the LambdaTest Platform: Explains how to execute automated tests on the LambdaTest cloud platform, allowing tests to run on multiple browser versions and operating systems in parallel, showcasing the platform's capabilities for cloud-based test execution.

Get By Label Concept - PW Locator: Introduces a Playwright locator strategy to interact with elements based on their labels, demonstrating a more semantic way to select elements in tests.

Create Dynamic Test Data: Discusses generating dynamic data for tests, such as unique email addresses, to avoid conflicts with existing data during test runs, using built-in JavaScript functions and potentially third-party libraries like Faker.

Login Methods - Page Object Model: Covers automating the login process using POM, showing how to create a login page class that includes methods for inputting credentials and submitting the login form.

Run Parallel Tests using TestNG: Explores configuring TestNG to run multiple tests in parallel, significantly reducing the total execution time for the test suite.

Conclusion: Concludes the tutorial by summarizing the key points covered, emphasizing the effectiveness of combining Playwright with Java, POM, and TestNG to build a robust automated testing framework.

Related Blogs & Hubs

Playwright vs Selenium vs Cypress: A Detailed Comparison

How To Find Elements Using Playwright Locators

How To Use Playwright Inspector For Debugging

Playwright Tutorial: Getting Started With Playwright Framework

How To Find Elements Using Playwright Locators

A Complete Guide To Playwright Assertions

Testing Modern Applications With Playwright ๐ŸŽญ

Playwright End To End Testing Tutorial: A Complete Guide

More Videos from Playwright with Java Tutorial