How to paste copied content from the clipboard

If you have a scenario where an element is clicked to copy content to a clipboard, you can use Multi_Action command to paste the clipboard content in your test case.

 

The following scenario shows how this can be prepared:

  1. Navigate to https://platform.subject-7.com/html/unitTest.html
  2. Under Clipboard Test section, you can see Hello World text that can be added to the clipboardmceclip0.png
  3. Once the button Copy Text is clicked, the text is added to the clipboard. In order to paste this text somewhere, you can use Multi_Action command with 3 actions
    1. Pressing and holding CTRL key on the keyboard
    2. Pressing v to paste
    3. Depressing CTRL key
  4. Your step will look like this:
  5. The following video shows execution of a sample test case:

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.