
Discover how Playwright from Microsoft automates Chromium, Firefox, and WebKit for cross-browser web testing with Python and Robot Framework, featuring automatic waits, diverse locators, script recording, device emulation, and DevTools.
Learn how to install Python and Robot Framework, verify versions, install Robot Framework with pip, and prepare your environment to begin using Playwright.
Install Playwright with Python by running pip install playwright and playwright install to fetch browsers like Chromium and Firefox; compare sync and asynchronous usage for Python scripts.
Install the PyCharm community edition as your integrated development environment, download and set up a new project with Python 3.8 to begin web automation.
Create a Python Playwright project, write your first script to launch Chromium, navigate a URL, and capture a screenshot; run from the IDE or command line, headless by default.
Learn to record user interactions with Playwright Record, which generates code in multiple languages, and explore the inspector, contexts, pages, and element locators for building Python automation scripts.
Master Playwright debugging to record, pause, and resume automation on the fly, manage multiple pages in one context, and use the inspector to accelerate script creation.
Learn to use Playwright trace viewer to postmortem test failures by enabling tracing, capturing screenshots and DOM snapshots, and exploring the resulting zip via parade to debug root causes.
Explore Playwright emulation to run the same tests across multiple devices and aspect ratios by configuring the browser context with viewport, color scheme, locale, and time zone.
Discover how Playwright video recording captures test execution to aid debugging, configure record video directory and resolution, and understand per-page videos stored in a videos folder.
Integrate the playwright library with the robot framework using a Python class that encapsulates core operations, enabling robot tests to launch browsers, open applications, and capture screenshots.
Move context creation to the suite setup to establish a single browser context for all tests and speed execution, using page.querySelector to handle pop-ups and enable record video at launch.
Create a page object model structure for Playwright with robot framework, integrating it through helper files and page classes to navigate menu items like input forms and simple form demo.
Learn to interact with table elements in Playwright, sorting by age, filtering with London, extracting column data, and validating results using a page object model in Robot Framework.
Learn to automate file downloads with Playwright in Python and Robot Framework, handling popups, configuring a downloads directory in the browser context, and saving downloads to a user-defined path.
Explore Playwright's drag and drop feature, using the built-in API to drag items to a drop zone and verify the resulting item list in a test.
Learn to handle alert box, confirm box, and prompt box dialogs in Playwright using a dialog listener, reading message text, and typing input into prompts.
Learn to perform file uploads in Playwright using silent, interactive, and listener modes, including choosing a file, clicking upload, and verifying the uploaded name.
Learn to interact with elements inside an iframe using Playwright with Python and Robot Framework, moving into the frame, editing text, applying bold, and returning to the main frame.
Learn to intercept web traffic with Playwright, wait for a specific API response, and capture the JSON data to extract user names and verify response codes for robust web automation.
Master window pop up handling with Playwright, switching between the main window and the pop up, performing actions like follow on Twitter and sign up, then returning.
Explore pabot parallel process execution to run Playwright and Robot Framework tests concurrently, install specific Robot Framework versions, manage processes and reports, and drive configuration through a central config file.
Configure parallel web automation with Playwright using a config file to drive browser, headless mode, video recording, slow motion, and downloads, read via config.get and a single launch browser.
Welcome to the PlayWright course.
What is PlayWright ?
PlayWright is a Node library to automate the Chromium , WebKit and Firefox browsers as well as Electron apps with a single API. It enables cross-browser web automation that is ever-green, capable, reliable and fast. PlayWright is Free and Open-Sourced by Microsoft.
Why PlayWright ?
Most of us have worked on web automation at some point of time in our career. The common challenges we face while automating are slowness of test execution, unreliable wait scenarios, the need to write a lot of boiler-plate code for browser setup, and parallel execution, etc. The playwright tries to address these issues and makes test authoring more readable, fast and reliable. Let’s see how we can achieve this in the following sections.
Why This Course ?
PlayWright has multiple language binding. But this is the only course available, which will describe how to use PlayWright with Python & Robot-Framework combination. With the increasing popularity of both PlayWright and Robot-Framework this course will enhance your knowledge base and help you to grow in your career.
Below are sections of this course and details given here.
1. Section-1: We will learn about concept of PlayWright and complete setup process
2. Section-2: We will learn about prime features of PlayWright with hand-on example.
Playwright recording script, Playwright debugging, Playwright Trace Viewer and more.
3. Section-3: We will learn about Robot Framework integration with playwright and Page Object Model design pattern
4. Section-4: We will learn about various web element interaction with Playwright.
Table data parsing, File Download, File Upload, Dialog handle and more.
5. Section-5: We will learn about parallel execution with Pabot and configuration-driven concurrent execution.