Class DefaultClipboard

java.lang.Object
com.codeborne.selenide.DefaultClipboard
All Implemented Interfaces:
Clipboard, Conditional<Clipboard>
Direct Known Subclasses:
SelenoidClipboard

@ParametersAreNonnullByDefault public class DefaultClipboard extends Object implements Clipboard
  • Constructor Details

    • DefaultClipboard

      public DefaultClipboard(Driver driver)
  • Method Details

    • driver

      @Nonnull @CheckReturnValue public Driver driver()
      Specified by:
      driver in interface Conditional<Clipboard>
      Returns:
      current Driver (used to take screenshots etc. in case of test failure)
    • object

      @Nonnull @CheckReturnValue public Clipboard object()
      Specified by:
      object in interface Conditional<Clipboard>
      Returns:
      object under test
    • getText

      @CheckReturnValue @Nonnull public String getText()
      Description copied from interface: Clipboard
      Get text from clipboard
      Specified by:
      getText in interface Clipboard
      Returns:
      string content of clipboard
    • setText

      public void setText(String text)
      Description copied from interface: Clipboard
      Set text to clipboard
      Specified by:
      setText in interface Clipboard
      Parameters:
      text - value to be set to clipboard