playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature] Evaluate code on Electron Utility Processes created through Electron 22's UtilityProcess API

Open johnnyd710 opened this issue 2 years ago • 0 comments

Playwright offers a way to evaluate Javascript in the browser's context via evaluate, and similarly for an Electron application.

In our case, most of the code we want to test is in a child process (actually an Electron Utility Process) forked off Electron's main process. It would be nice if there was a way to evaluate code on electron utility processes created through electron 22's utilityProcess API.

Our solution in the meantime is to pass the code we want to test as strings through an IPC server we set up on the utility process.

johnnyd710 avatar Dec 09 '22 17:12 johnnyd710