Plugin support
tejaskumark opened this issue · 6 comments
tejaskumark commented
Hello,
I want to use extra plugin stealth. I tried to check quickly on repo, but not able to find anything useful. Is there any way to get it working with playwright-go?
Side question -
On a side note, is there anyway to accept browser notification in automated way as because of it sometimes flow is breaking and I am not able to find how to accept that.
Thanks.
canstand commented
- playwright-go won't support stealth.
page.AddInitScript
inject js may be useful. - You can use
BrowserContext.GrantPermission
tejaskumark commented
@canstand Thanks for the help.
- playwright-go won't support stealth.
page.AddInitScript
inject js may be useful.
Answer - If possible can you please give exampe of. - You can use
BrowserContext.GrantPermission
Answer - Issue here is, I do not want to grant permission and whenever I open page it gives this pop up and I am stuck over that page forever. As far as I understood playwright, id can not control this pop up as of now. Is my understanding correct?
canstand commented
- try inject script here, but I didn't test
- reference upstream, for chromium
tejaskumark commented
@canstand Thanks for the help.
- I can confirm that even after adding that script it does not work, also no error. I directly added this script
- My goal was to automate join google meet automated way, but somehow google is able to distinguish between browser opened over CDP(it never start meet) vs manually opened(it will start joining process).
- I wanted to suppress browser notification for firefox, somehow these two settings helped me media.navigator.enabled && media.navigator.permission.disabled, and now it doesn't show browser notification.
ashirbadXcdify commented
Any upadte on this. It will be helpful if we have blockpermission along with grantpermission
canstand commented
I can confirm inject JS works. #282 (comment)