Class NativeDetailsTester

    • 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
      NativeDetailsTester(NativeDetails component) Wrap given component for testing.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void click(int button, MetaKeys metaKeys)
      NativeDetails.Summary getSummary() Get the summary component of this Details element.
      String getSummaryText() Get the summary text.
      Component getContent() Get details content if the details is opened.
      void toggleContent() Toggle the open state of the component.
      • Methods inherited from class com.vaadin.testbench.unit.ComponentTester

        find, getComponent, isUsable, setModal
      • Methods inherited from class com.vaadin.flow.component.html.testbench.HtmlComponentTester

        getText, getTitle
      • Methods inherited from class com.vaadin.flow.component.html.testbench.ClickHandler

        click, click, middleClick, middleClick, rightClick, rightClick
      • Methods inherited from class java.lang.Object

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

      • NativeDetailsTester

        NativeDetailsTester(NativeDetails component)
        Wrap given component for testing.
        Parameters:
        component - target component
    • Method Detail

      • getSummary

         NativeDetails.Summary getSummary()

        Get the summary component of this Details element.

        Returns:

        summary component

      • getContent

         Component getContent()

        Get details content if the details is opened.

        Returns:

        details content

      • toggleContent

         void toggleContent()

        Toggle the open state of the component.