I'm using Chrome Headless for testing purpose. It is used in conjunction with nightwatch.
There is an action that clicks on a button in a page. Unfortunatly the page is not online, but the copy part is done with export:
this.waitForElementVisible('@exportBtn', 6000)
.click('@exportBtn')
This button, using javascript, it copy some content in the clipboard.
[EDITED] The button uses ngclipboard from Angular (https://sachinchoolur.github.io/ngclipboard/)
But when I "paste" the content in another field, the content is not the one copied/expected. The paste is done with:
client.keys([client.Keys.CONTROL, "v"]);
Running the same test in the normal way (Chrome with the UI) there is no error.
For your info: the paste part works, in the sense that it paste something in the text field, but it's not the one copied, it's the last thing copied by myself (from notepad, from word...from everything but outside and before the run of this test)
Any clue or possible error?