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 alerts and dialogs in Playwright - Microsoft Playwright Tutorial
From the course: Playwright Essential Training: Abstractions, Fixtures, and Complex Scenarios
Working with alerts and dialogs in Playwright
- [Instructor] It's likely that you've run into alert or confirm dialogs on the web. While these are less common nowadays, they're still found in many web applications. In this video, we're going to walk through filling out the contact form on this page and work through dealing with multiple confirmation boxes. This is quite a complex scenario with all the dialogs involved, as you'll see as we're diving in. So the first thing I'm going to do is I've still got my local environment running, so I'm browsing here. I'm going to click on the Contact link. One thing to note is this is going to open up a new window. So we're going to use the same functionality to kind of work from a new window that we did in the last one or a new page. And we're going to come in here, we'll just go ahead and inspect this so we can kind of see what each of these are. So it looks like we have an input that is name has an ID of name, an input ID of email, input ID of message, and then we have a submit button. So…