Monday, 12 May 2025

Playwright Post 5 - Understanding how Playwright Works

Playwright consists of two main parts.

Part 1: Playwright Library: This is the automation of a browser using the Page Object Model (POM).  It provides a uniform API to run against the 3 main browser engines.  So it automates tasks like navigating, clicking, filling in form data, and validating content on a web page. Classes include APIRequest, APIResponse, and BrowserContext,...  The worker process runs the API calls sequentially.  Unified library API calls are sent to the browser context, which runs unaware of the calling context.  

Top link runs in Node.js and makes API library calls, there is no timing between the Node.js (Controller) and the browser instance (running Chromium instance)

Part 2: Test Runner: This part runs the Playwright tests.


Playwright Series

0 comments:

Post a Comment