A Java library that enables you to launch Selenium ChromeDriver using an existing user Profile. That let you to carry cookies over multiple HTTP sessions via user Profile.
0
stars
0
forks
source link
Getting Clipbord content from Remote Selenium Chrome Node #44
My chromedriverfactory is capable of accepting any custom Preference. So l will add an example of using my Chromedriverfactory so that my selenium java test code can get access to the clipboard text.
There was a discussion in the Katalon user forum: https://forum.katalon.com/t/value-from-buffer-copied-link-to-be-assigned-to-groovy-variable/83681/3
The original poster wanted to read the clipboard of a remote browser. I found that JavaScript's
Clipboard.readText()
is the key to solve the problem. https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readTextHowever, I found that I have to understand the security and permissioning around clipboard access.
The following article suggested that we can fully automate granting access to Clipboard by configuring a Chrome's Preference https://sahajamit.medium.com/getting-clipboard-content-from-remote-selenium-chrome-nodes-67a4c4d862bd
My chromedriverfactory is capable of accepting any custom Preference. So l will add an example of using my Chromedriverfactory so that my selenium java test code can get access to the clipboard text.