Created
July 10, 2024 14:25
-
-
Save e10a/3de0badeec5817eb3a6c5276408da621 to your computer and use it in GitHub Desktop.
capybara allow clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdp_params = { | |
origin: page.server_url, | |
permission: { name: 'clipboard-read' }, | |
setting: 'granted' | |
} | |
page.driver.browser.execute_cdp('Browser.setPermission', **cdp_params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment