Class DetailsTester

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final T component
    • Constructor Summary

      Constructors 
      Constructor Description
      DetailsTester(T component) Wrap given component for testing.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void openDetails() Shows contents as if the summary is clicked on the browser.
      void closeDetails() Hides contents as if the summary is clicked on the browser.
      void toggleDetails() Toggles details visibility, as if the summary is clicked on the browser.
      boolean isOpen() Checks if the details are open.
      • Methods inherited from class com.vaadin.testbench.unit.ComponentTester

        find, getComponent, isUsable, setModal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DetailsTester

        DetailsTester(T component)
        Wrap given component for testing.
        Parameters:
        component - target component
    • Method Detail

      • openDetails

         void openDetails()

        Shows contents as if the summary is clicked on the browser. An exception will be thrown if the details are already open.

      • closeDetails

         void closeDetails()

        Hides contents as if the summary is clicked on the browser. An exception will be thrown if the details are not open.

      • toggleDetails

         void toggleDetails()

        Toggles details visibility, as if the summary is clicked on the browser.

      • isOpen

         boolean isOpen()

        Checks if the details are open.

        Returns:

        true if the details are open, otherwise false.