Package 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
Tester for Button components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
click()
If the component is usable send click to component as if it was from the client.void
If the component is usable send click to component as if it was from the client with defined meta keys pressed.void
Click with middle button.void
middleClick
(MetaKeys metaKeys) Click with middle button and given meta keys.void
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
ensureComponentIsUsable, ensureComponentIsUsable, ensureVisible, ensureVisible, find, findAllByQuery, findByQuery, fireDomEvent, fireDomEvent, fireDomEvent, getComponent, getField, getField, getMethod, getMethod, isUsable, isUsable, notUsableReasons, notUsableReasons, roundTrip, setModal
-
Constructor Details
-
ButtonTester
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
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
Click with middle button and given meta keys. -
rightClick
public void rightClick()Click with right button. -
rightClick
Click with right button and given meta keys.
-