How to paste data from file

Hi Everyone,

I want to paste data from a file into the text field, can you please suggest a way to do this?
I could not find any keywords related to copy and paste functionality

Hi Madhurya,

If it’s just a text file Get File will give you the contents of the text file as a variable that you can just pass to Input Text or similar.

would probably look something like this:

${FileText}=    Get File    c:/path/to/mytextfile.txt
Input Text    //textarea[@id="mytextfield"]    ${FileText}

Dave.

1 Like

It worked, Thank You Dave :slightly_smiling_face:

1 Like