Advanced Playwright TypeScript Tutorial Home / Video /

How to Handle Web Tables | Playwright TypeScript Tutorial | IX | LambdaTest

How to Handle Web Tables | Playwright TypeScript Tutorial | IX | LambdaTest

About The Video

Explore the world of Playwright with TypeScript in this comprehensive tutorial by Vignesh Srinivasan, a skilled expert in automation testing. In this tutorial, you'll learn handling web tables effectively.

This comprehensive tutorial covers the fundamentals of web tables, including their structure, elements like thead, tbody, tr, and td, and the DOM inspection process to validate table elements. You'll learn how to identify rows and columns programmatically, perform filtering operations based on specific criteria like tasks, assignees, and statuses, and write advanced assertions to verify test outcomes accurately.

This video also demonstrates how to integrate Playwright with LambdaTest for cross-browser testing, ensuring your scripts perform seamlessly across various environments.

Video Chapters

00:00 Introduction

01:10 What is a Web Table

06:47 Handling Web Table

24:20 Code Execution & Review

28:34 Closing Words

Key Topics Covered

Introduction to Web Tables:

Definition and structure of web tables.

Identifying web tables in a website using tags like table, tr, and td.

Handling Web Tables in Playwright:

Writing locators for table elements.

Techniques to count rows and columns in a web table.

Managing table data efficiently in Playwright.

Filtering and Validating Data:

Methods to filter data in a web table using search inputs.

Validating filtered results through assertions in test cases.

Using CSS for Precise Targeting:

Employing advanced CSS selectors like :not and nth-child for row and column identification.

Strategies to differentiate visible and hidden rows during filtering.

Dynamic Interaction and Assertions:

Techniques to interact with search fields and verify results dynamically.

Advanced assertions to confirm specific content in table rows or columns.

Integration with LambdaTest:

Overview of integrating Playwright tests with LambdaTest for cross-browser compatibility.

Executing tests on different operating systems and browsers.

Code Execution and Results Validation:

Running Playwright test cases and validating results through LambdaTest's dashboard.

Reviewing test execution videos and build results.

Practical Examples and Demonstrations:

Sample implementations of filtering rows by task, status, or assigned fields.

Demonstrating filtering capabilities across multiple table configurations.

Related Blogs & Hubs

Playwright End To End Testing Tutorial: A Complete Guide

Playwright Tutorial: Getting Started With Playwright Framework

Playwright Tutorial: How to Handle Alerts and Dropdowns

More Videos from Advanced Playwright TypeScript Tutorial