Click-to-copy is a tool and syntax that allows text to be copied to the clipboard of the tester so that they can easily copy and paste text specified in the step and you can easily glance at a step to see what will be copied. It also makes it very obvious you want the text copied and pasted.
Here is text being formatted and what it looks like to the tester:
How do I add Click to Copy to my steps?
While editing a step, text can be highlighted and a widget will appear. Clicking the click-to-copy widget will put the text highlighted inside of “[[copy()]]” syntax. Click *Save* and you’ll see that the text is click-to-copy-able.
How do I remove Click to Copy?
- Delete the [[copy()]] using your mouse and/or keyboard
- Highlight all text in between the parenthesis in copy() and click the widget. The syntax will disappear:
When should I use Click to Copy?
Two best practices:
- Make step variables easily copy-able by the testers
- Whenever you want testers to copy and paste text (typically into a text field or while filling out a form)
If you have any questions about step formatting, please let us know at email@example.com!