com.vaadin.flow.component.button.

Class ButtonTester<T extends Button>

java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
com.vaadin.flow.component.button.ButtonTester<T>

Type Parameters:

T - component type

public class ButtonTester<T extends Button> extends ComponentTester<T>

Tester for Button components.

  • Constructor Details

    • ButtonTester

      public ButtonTester(T component)

      Wrap given button for testing.

      Parameters:

      component - target button

  • Method Details

    • click

      public void click()

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

    • click

      public 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

      public void middleClick()

      Click with middle button.

    • middleClick

      public void middleClick(MetaKeys metaKeys)

      Click with middle button and given meta keys.

    • rightClick

      public void rightClick()

      Click with right button.

    • rightClick

      public void rightClick(MetaKeys metaKeys)

      Click with right button and given meta keys.