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:
- Navigate to https://platform.subject-7.com/html/unitTest.html
- Under Clipboard Test section, you can see Hello World text that can be added to the clipboard
- 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
- Pressing and holding CTRL key on the keyboard
- Pressing v to paste
- Depressing CTRL key
- Your step will look like this:
- The following video shows execution of a sample test case:
Comments
Please sign in to leave a comment.