Reputation: 7312
Is it possible to intercept the dialog created after requesting a usb device via navigator.usb.requestDevice
? I tried page.on("dialog", dialog => ()
from the puppeteer script and document.addEventListener('dialog', () => ...)
from the page DOM but none of those callbacks were invoked.
Upvotes: 2
Views: 161
Reputation: 6093
This is not possible today but it is something the Chromium project is aware developers are interested in.
To help prioritize this feature, can you say what your use case for automating this dialog is?
Upvotes: 2