As I'm sure many have heard, AI is all the rage.
At my company, there's been talks of using AI solutions to speed up the process of writing tests (currently it just me).
The topic of playwright mcp has come up a few times. Personally my concern is around cost of running LLMs and whether it really mimics a user's view/workflow since the default setting for mcp is using the accessiblity tree. Also the discomfort of using something that could replace some of my own responsibilities. But I admit I'm not very well educated in this area.
Has anyone used it? If so what are some pros and cons of doing so?
That. I've just had a meeting with the QA department in the company and the QA lead strongly encouraged (aka, is forcing) us to start using AI. The one they mentioned and one that drew my attention was Playwright MCP. They said it was wonderful and marvelous. I know they're doing this because their clients are asking the employees to start using it because it speeds processes up by a lot. I'm about to try it out but I don't know... I love creating test cases and automating them. I have a good time and that's the reason why Im into automation (half coding skills, half understanding the business). Not a fan of AI doing all my freaking job. I will still be doing automation test cases on my own in my repo. But have you tried it? What do you think of it?
PD: I've just tried. My opinion? Yeah it has potential as someone said here. I spent around an hour to get one single test running unsuccessfully. It's a tricky app, but quite close to a real scenario where things can get that way. I do see it can save a shit ton of time finding locators and setting the POM structure, not not much more. Actually, I showed it my code (which runs smoothly in every case) and it still couldn't get the test done correctly.
Videos
I’d like to start my first project with Playwright MCP Server. Could you share links to videos or documentation that explain from scratch how to connect MCP Server with my VS Code/Copilot on Mac? I’m basically looking for beginner-friendly resources to get started.
Just saw a YT video about using playwright mcp. All the behaviors described (screenshots, etc) are available to CC without installing or using MCP, so I’m just curious, is there value to using the MCP over simply asking Claude to “use playwright to visit blah and screenshot the results, review the error and fix”
I have successfully integrated this playwright mcp -Microsoft one ( adding tools ) to Claude code . We can now add a prompt and pass it in Claude code headless cli .. however the browser navigation is quite slow .. for example it takes more than 4 seconds for Claude code to login using username and password..
How did you speed up the process ..? I am using WSL2
Thanks in advance
there isn't any guide to it, but I know that I can have the playwright browser running on one machine and the test script on another, and connect remotely to the browser (via BrowserType.launchServer and BrowserType.connect), yet I don't know how can I use the MCP server along with that.
should it replace BrowserType.launchServer? should it connect to the remote browser?
it all got me confused. I want to use LLM for testing but I still want to use the same browser for my existing playwright scripts.
Hey folks, I work on a app which goes through a journey from login, entering data on multiple screens & then submitting at the last screen. I was able to use Playwright MCP & make it go through the login & few of the starting screens but I plan to save & reuse the set of prompts repeatedly after every major feature goes through.
My question is whether to use MCP for such repeated validation or create a script using MCP or Playwright codegen which is more economical. Will the playwright test scripts give the same live preview that I was getting using the MCP tools?
Playwright MCP uses a session and prevents proper cache clearing. How many times did Claude tell me "Perfect Deployment!" only to open the console and see a row of errors? It's all about control and caching. Claude does just fine writing its own Playwright scripts. I can't see any use for the MCP at this point. Tell me if I'm wrong.
Dear Community,
I am currently exploring MCP (Model Context Protocol) Playwright and its usability in the test automation process. As a Test Automation Engineer, I am interested in understanding how it can be beneficial for me. From what I have discovered so far, it seems quite useful for manual testers, especially those who are not familiar with coding. I would like to integrate (Model Context Protocol) Playwright with Azure DevOps Test Plans, as my organization primarily uses the Microsoft stack. Can anyone provide insights on how MCP Playwright could be advantageous in my scenario?
These days, everyone is talking about MCP servers, which let users automate a plethora of tasks.
I also tried using the Playwright MCP server to try a few things on VS Code.
Here is one such experiment: https://youtu.be/IDEZA-yu34o
Please review and give feedback.
I’m just starting to use playwright mcp to automate tests, I’ve been using it with Cursor and mostly Claude so far.
I’m trying to tweak and come up with a prompt that works for me, so far I think it has proven a little helpful for me but its just annoying that it does tend to hallucinate and doesn’t get it right the first time around.
I’m curious to know how has everyones experience been with using the MCP, and how have you optimised it to work for you?
No matter what I try, Claude code cannot access the Microsoft Playwright MCP. I'm searching for troubleshooting tips, but can't find anything. Is there anyone using it?
[EDIT] Solved, "claude mcp add playwright -- npx "@playwright/mcp@latest" worked.
Was playing around with MCP Agent from Lastmile AI and ended up building an automated workflow that logs into LinkedIn, searches for candidates (based on custom criteria), and dumps the results to a local CSV.
Originally did it because we’re hiring and I wanted to avoid clicking through 100+ profiles manually. But turns out, this combo (MCP + Playwright + filesystem server) is pretty powerful. You can use the same pattern to fill out forms, do research, scrape structured data, or trigger downstream automations. Basically anything that involves a browser + output.
If you haven’t looked into MCP agents yet — it’s like a cleaner, more composable way to wire up tools to LLMs. And since it’s async-first and protocol-based, you can get some really nice multi-step flows going without LangChain-style overhead.
Let me know if anyone else is building with MCP — curious to see other agent setups or weird use cases.
I have setup Playwright and it's been amazing. However, I can't seem to get it to work across multiple instances of Claude CLI running.
Does anyone have any tips?
I've built an MCP client with the following structure: An LLM (GPT-4.1) with the Playwright MCP server tools added to its context. When I query the LLM for an automation task, it requests some tool calls, which I then perform through the MCP server.
My current problem is that when a snapshot is requested, for some sites it can reach up to 200k tokens - so I can't even send it to the LLM, as its limit is 100k tokens per minute. I thought about doing some filtering and preprocessing before sending it again, but I was curious: what is the standard way to tackle such a problem?
A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
Documentation 📚 https://executeautomation.github.io/mcp-playwright/
With the Playwright MCP server, you can:
Enable LLMs to interact with web pages in a real browser environment. Perform tasks such as executing JavaScript, taking screenshots, and navigating web elements. Seamlessly handle API testing to validate endpoints and ensure reliability. Playwright MCP Server
Playwright MCP Server is supported in Cline, Cursor and Claude desktop client
Video details https://youtu.be/Fp7D7RuzElo?si=0fw2hP8GX9WhB87U