Copying clicpboard content

Hi
I need to copy the clicpboard content to a variable. Do you have any idea how to do that?
I tried this code but it is not working
await I.executeScript(function() {

  userDealLink = navigator.clipboard.readText();

  return userDealLink;

});

this two methods working with clipboard

ClipGet()

and

ClipPut()

you can do something as:

const AUTOIT = require(‘autoit’);
AUTOIT.Init();

public static async pushToClipboard(value): Promise {
await AUTOIT.ClipPut(value);
await AUTOIT.Sleep(1000);
};

public static async getContentFromClipboard(): Promise {
return await AUTOIT.ClipGet();
};

autoit do many others things with desktop…

another library only for working with clipboard is: