ChromeDevTools / devtools-protocol

Chrome DevTools Protocol
https://chromedevtools.github.io/devtools-protocol/
BSD 3-Clause "New" or "Revised" License
1.15k stars 226 forks source link

How to interact with Chrome dialogs? #302

Open raulblanko opened 1 year ago

raulblanko commented 1 year ago

How to interact and close tabs and pop-ups like 'chrome://privacy-sandbox-dialog/notice' or "Restore pages?"

privacy_sandbox_3
paulirish commented 9 months ago

I'm not sure about this particular dialog, but https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md lists many flags that disable behavior like this. --ash-no-nudges is a possibility for this one, but I kinda doubt it.

Also using Chrome For Testing might sidestep this one. https://developer.chrome.com/blog/chrome-for-testing

g'luck