ruifigueira / playwright-crx

Playwright for chrome extensions
Apache License 2.0
81 stars 15 forks source link

Running scripts in background #12

Closed rupakkarki27 closed 4 months ago

rupakkarki27 commented 7 months ago

Hey @ruifigueira, awesome work here and thank you for this.

I just wanted to ask a quick question. Is it possible to run our scripts in the background without visibly opening a tab in the browser and only navigate to the page once the script is complete? I have been trying to figure this out but can't seem to get anywhere.

Thanks.

ruifigueira commented 7 months ago

Playwright CRX actually runs in the extension service worker, that is, in background, but to do anything useful it needs a tab that it can attach to.

I don't think there's a way to actually have hidden tabs in chrome. You can however create a collapsed tabGroup and add your tabs to it (see collapsed property in chrome.tabGroups.update.

rupakkarki27 commented 7 months ago

Hey @ruifigueira, thank you for playwright-crx, I was wondering if you had any contribution page where we can contribute to.

ruifigueira commented 7 months ago

Thanks, @rupakkarki27. What kind of contributions do you have in mind?

lukassvec commented 6 months ago

Happy holidays. Took me a while to get back to this. @ruifigueira, I appreciate the work you do and how responsive you've been. Do you have means to accept monetary donations ($500) like github sponsorship, paypal, or venmo?