Open jubishop opened 2 years ago
I'm trying to read the clipboard, like so:
page.driver.browser.command( 'Browser.setPermission', permission: { name: 'clipboard-read' }, setting: 'granted') clip_text = page.evaluate_async_script('navigator.clipboard.readText().then(arguments[0])')
but I get told error: DOMException: Read permission denied
error: DOMException: Read permission denied
it seems like this should be the right code. any ideas?
page.driver.browser.command( 'Browser.grantPermissions', permissions: ['clipboardReadWrite'])
also does not seem to work
I'm trying to read the clipboard, like so:
but I get told
error: DOMException: Read permission denied
it seems like this should be the right code. any ideas?