From the course: Playwright Essential Training: Abstractions, Fixtures, and Complex Scenarios
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Working with multiple windows and popups in Playwright - Microsoft Playwright Tutorial
From the course: Playwright Essential Training: Abstractions, Fixtures, and Complex Scenarios
Working with multiple windows and popups in Playwright
- [Instructor] So far throughout this course, we focused on interacting with a single browser window at a time in our tests. In this video, we're going to learn how to interact with multiple browser windows and to deal with popups. For the next few videos, we'll be using the bagel shop project, which is the local web server that we set up in Chapter 4, Video 1, so let's open up our project and go ahead and run that web server. To do that, I'm going to use my terminal baked into VS Code. I'm going to start by clicking this + button. This is going to create a new split terminal, and in this second terminal, I'm going to type in npm run start. If you have not run the npm run install bagel shop command first, you will need to do that first, but running this should run the Vite server. I'm going to copy this URL, and we are going to paste it into a Chrome browser. Now, for this first test, this site is a test site, and it is not well designed on purpose, but specifically, we're going to…