How to paste from clipboard in katalon recorder

Hey, guys In katalon recoder I have copied some text to clipboard and I have to paste it on the same site from the clipboard. The source from where the get text copied will automatically change text each time when I run the katalon recorder or simply if I reload the page.

Therefore type command will not work because it will store the text from the first katalon run and wont paste the newly copied text.

In simple words is there any way to paste the text from the clipboard directly without storing old text data

Hi google for “javascript execcommand” it can copy and paste but i personally never used it so i’m not sure it will help.

hello u can use Java Method for doing that

import java.awt.Toolkit
import java.awt.datatransfer.DataFlavor

String my_clipboard = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null).getTransferData(DataFlavor.stringFlavor);

// use my_clipboard variable where it is relevant