top | item 45508467

(no title)

arkmm | 4 months ago

What sorts of automations were you able to get working with the Chrome dev tools MCP?

discuss

order

odie5533|4 months ago

Not OP, but in my experience, Jest and Playwright are so much faster that it's not worth doing much with the MCP. It's a neat toy, but it's just too slow for an LLM to try to control a browser using MCP calls.

raffraffraff|4 months ago

Actually the super power of having the LLM in the bowser may be that it vastly simplifies using LLMs to write Playwright scripts.

Case in point, last week I wrote a scraper for Rate Your Music, but found it frustrating. I'm not experienced with Playwright, so I used vscode with Claude to iterate in the project. Constantly diving into devtools, copying outter html, inspecting specific elements etc is a chore that this could get around, making for faster development of complex tests

atonse|4 months ago

Yeah I think it would be better to just have the model write out playwright scripts than the way it's doing it right now (or at least first navigate manually and then based on that, write a playwright typescript script for future tests).

Cuz right now it's way too slow... perform an action, then read the results, then wait for the next tool call, etc.

nsonha|4 months ago

Not tested much but Playright can read browser_network_requests' response, which is a much faster way to extract information than waiting for all the requests to finish, then parse the html, when what you're looking for is already nicely returned in an api call. Puppeteer MCP server doesn't have an equivalence.

typpilol|4 months ago

You can use it for debugging with the llm though.