Package com.workfusion.rpa.helpers
Class RobotClipboard
java.lang.Object
com.workfusion.rpa.helpers.RobotClipboard
Provides the functionality related to the system clipboard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClean clipboard.Returns text from RPA agent clipboardCopies currently selected text and returns it.Select all text in current window and copies it to clipboard.voidsetClipboardText(String text) Set text to clipboard
The same as CTRL + V
-
Constructor Details
-
RobotClipboard
public RobotClipboard()
-
-
Method Details
-
clipboardText
Returns text from RPA agent clipboardDriver Type: Desktop
- Returns:
- text from clipboard
- Since:
- 9.2
-
copySelectedText
Copies currently selected text and returns it.Driver Type: Desktop
- Returns:
- text from clipboard
- Since:
- 9.2
-
selectAllTextAndCopy
Select all text in current window and copies it to clipboard.
The same as (CTRL + A; CTRL + C)Driver Type: Desktop
- Returns:
- text from clipboard
- Since:
- 9.2
-
setClipboardText
Set text to clipboard
The same as CTRL + VDriver Type: Desktop
- Parameters:
text- to clipboard- Throws:
NullPointerException- in case text is null.- Since:
- 9.2
-
cleanClipboard
public void cleanClipboard()Clean clipboard. Send empty string to clipboard.Driver Type: Desktop
- Since:
- 9.2
- See Also:
-