-
Book Overview & Buying
-
Table Of Contents
Hands-On Automated Testing with Playwright
By :
This useful duo helps you speed up test creation with less hassle. Let’s try something: tell Copilot to Open the Playwright MCP repo. Then click the Watch button and select all activities to monitor.

Copilot will ask for your confirmation (just for safety), so go ahead and click Continue. You’ll see it launch a browser, navigate to the right page, and even notice that you need to be signed into GitHub. It uses Playwright’s snapshot tool to figure this out, and then clicks the Sign In button. It can identify the login form and fields for username/email and password.
Heads-up: Copilot will warn you not to share passwords with AI. No problem: you can just manually click into the form, paste in your credentials, and handle two-factor authentication as usual.
Once you're signed in, you can tell Copilot to watch the repo. And that’s it. Watching the code...