replayio/chromium

Support separate inspector sessions

Closed this issue · 1 comments

Playwright partially works with recording processes, but breaks when trying to actually interact with the page. The problem is that we create a separate V8Inspector to allow the driver to inspect the process state, but this conflicts with the V8Inspector that is always created in renderer (aka content) processes. V8 only allows one inspector per thread, and inspector methods get confused and fail when playwright is trying to send the process CDP commands. This can be fixed by attaching a separate session to the existing V8Inspector.