Closer to the Metal: Leaving Playwright for CDP
browser-use.com·21w·
Discuss: Hacker News
Preview
Report Post

Goodbye Playwright, Hello CDP

Playwright and Puppeteer are great for making QA tests and automation scripts short and readable, but as AI browser companies have been learning the hard way over the last year, sometimes these adapters obscure important details about the underlying browsers.

We decided to peek behind the curtain and figure out what the browser was really doing, and it made us decide to drop playwright entirely and just speak the browser’s native tongue: CDP.

By switcing to raw CDP we’ve massively increased the speed of element extraction, screenshots, and all our default actions. We’ve also managed to add new async reaction capabilities to the agent, and proper cross-origin iframe support.

![](…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help