Class RobotClipboard

java.lang.Object
com.workfusion.rpa.helpers.RobotClipboard

public class RobotClipboard extends Object
Provides the functionality related to the system clipboard
  • Constructor Details

    • RobotClipboard

      public RobotClipboard()
  • Method Details

    • clipboardText

      public String clipboardText()
      Returns text from RPA agent clipboard

      Driver Type: Desktop

      Returns:
      text from clipboard
      Since:
      9.2
    • copySelectedText

      public String copySelectedText()
      Copies currently selected text and returns it.

      Driver Type: Desktop

      Returns:
      text from clipboard
      Since:
      9.2
    • selectAllTextAndCopy

      public String 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

      public void setClipboardText(String text)
      Set text to clipboard
      The same as CTRL + V

      Driver 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: