Class ButtonTester

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

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void click() If the component is usable send click to component as if it was from the client.
      void click(MetaKeys metaKeys) If the component is usable send click to component as if it was from the client with defined meta keys pressed.
      void middleClick() Click with middle button.
      void middleClick(MetaKeys metaKeys) Click with middle button and given meta keys.
      void rightClick() Click with right button.
      void rightClick(MetaKeys metaKeys) Click with right button and given meta keys.
      • 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

      • ButtonTester

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

      • click

         void click()

        If the component is usable send click to component as if it was from the client.

      • click

         void click(MetaKeys metaKeys)

        If the component is usable send click to component as if it was from the client with defined meta keys pressed.

      • middleClick

         void middleClick()

        Click with middle button.

      • middleClick

         void middleClick(MetaKeys metaKeys)

        Click with middle button and given meta keys.

      • rightClick

         void rightClick()

        Click with right button.

      • rightClick

         void rightClick(MetaKeys metaKeys)

        Click with right button and given meta keys.