playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature] Intercept console of service worker

Open rony-arnac opened this issue 3 years ago • 3 comments
trafficstars

Hi!

How do I intercept console logs of a service worker. Thought it would be something like:

      context.on('serviceworker', sw =>
        sw.on('console', message => {
          console.log(message);
        })
      );

but on only has close event :<

The context of this question is chrome extension MV3 background service worker

thx!

rony-arnac avatar Nov 13 '22 08:11 rony-arnac

console event is not implemented on the service worker's execution context. I'll keep it open to collect upvotes.

pavelfeldman avatar Nov 14 '22 02:11 pavelfeldman

Why was this issue closed?

Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.

If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.

pavelfeldman avatar Jun 30 '23 20:06 pavelfeldman

🔥

schickling avatar Jun 17 '25 15:06 schickling