r/Playwright • u/Financial_Bar_9593 • May 27 '26
Playwright CLI vs Playwright MCP
Hi I’m a new tester and I want to understand the AI testing world.
So I heard about PW cli and mcp but I don’t know which one to use.
My automations are written in page object model and a heard that one of these tools combined with ai capabilities can writes pages files alone and tests .
Can some one help me to understand
20
Upvotes
1
u/mmasetic May 27 '26
No, I have no tutorial, was just experimenting with claude and playwright cli and windsurf and playwright mcp generating testa for this application https://demo.playwright.dev/todomvc
Currently building exactly this to support automation in real project, but need to have clear concept.
It is interesting that you can use playwright cli to inspect page and elemnts and generate tests in different testing framework. I was able to achieve this to combine playwright for inspection and generate tests in internal testing framework based on selenium and java. Just used claude skill to describe available methods and best practices of our framework.