ChromeDevTools / devtools-protocol

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

How to interact with Chrome dialogs? #302

Open raulblanko opened 10 months ago

raulblanko commented 10 months ago

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

privacy_sandbox_3
paulirish commented 4 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