Skip to content

Can't read clipboard #90

Description

@jubishop

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

it seems like this should be the right code. any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions