Users flows and Playwright #13326
Replies: 2 comments 6 replies
-
This seems possible, but I'm also a little suspicious that literally everything else is compatible except for this call. :) I'd be happy for you to explore this a bit more and tell us, though. In the meantime, you could monkeypatch your playwright page API so that you get past this bit.. something gross like page.target = _ => ({
createCDPSession: page.context().newCDPSession(page)
}); .. might just work? |
Beta Was this translation helpful? Give feedback.
-
Do you know anyone who managed to solve this problem? Can you share his solution? 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hello 👋 Very excited about the introduction of user flows. I've been wanting something like this for awhile.
Today I tried to see if I could get it to work with Playwright since the api is mostly similar to Puppeteer. Alas, it was not meant to be. I believe this mainly comes down to the way the CDP session is created is slightly different.
lighthouse/lighthouse-core/fraggle-rock/gather/driver.js
Line 74 in 68ba77a
Playwright CDP docs
Would it make sense to introduce an overload where instead of passing a
Page
you pass in aCDPSession
? Then, even if puppeteer and playwright's api's continue to diverge, we can make an adapter in userspaceBeta Was this translation helpful? Give feedback.
All reactions