Automating a web chat with Playwright
Goal: Get a first look at how Playwright enables control of multiple tabs and contexts through a practical example. Notes: - This is not a full-blown tutorial on multiple tabs; one such tutorial will come in the near future. - This is not one of my Automate Togethers, i.e. I am not live coding and I had a look at automating this scenario beforehand. Environment: - MacBook Pro (13-inch, M1, 2020) - macOS Monterey (12.2.1) - Node v14.15.4 - Playwright 1.22 Contact: - @rag0g on Twitter - linkedin.com/in/ragog You can find additional material on this and related topics on https://ragog.link Timestamps: 00:00 Introduction 01:37 Getting set up 03:24 Figuring out state constraints 04:57 Running the recorded script 06:01 Managing contexts and tabs 14:40 Recap 16:45 Running with Playwright Test 17:40 Wrap up Disclaimer These videos are meant to teach interested people, professionals and amateurs, how to use browser automation tools such as Playwright to write scripts for testing, synthetic monitoring, scraping and similar use cases. They center around popular websites to demonstrate real world scenarios for automation. Their aim is never to disrupt a website’s availability or violate its terms of service. Before you attempt automation on a publicly available website, make sure you read the terms and conditions around automation (and specifically scraping) and abide by them.
Download
0 formatsNo download links available.