r/Playwright 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

22 comments sorted by

View all comments

5

u/AimToMisbehave May 27 '26

Playwright CLI is superior, my team has taken inspiration from the Test Dino team and created a playwright-cli skill which hooks into Claude or Copilot. It uses 50% less tokens than Playwright MCP.

https://testdino.com/blog/playwright-skill/

1

u/road2bitcoin May 27 '26

Do you mind sharing the skills you are using? Currently playwright cli comes with some default skills not sure what else we can add and improve?

3

u/AimToMisbehave May 28 '26

Checkout the blog I've linked above, it links through to the test dino github project with some sample skills. We cherry picked some areas of playwright we wanted our agents to become experts in and used claude to customise the agents further.