setInterceptFileChooserDialog method

Future<void> setInterceptFileChooserDialog(
  1. bool enabled
)

Intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted.

Implementation

Future<void> setInterceptFileChooserDialog(bool enabled) async {
  await _client.send('Page.setInterceptFileChooserDialog', {
    'enabled': enabled,
  });
}