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 TypeMethodDescriptionvoidclick()If the component is usable send click to component as if it was from the client.voidIf the component is usable send click to component as if it was from the client with defined meta keys pressed.voidClick with middle button.voidmiddleClick(MetaKeys metaKeys) Click with middle button and given meta keys.voidClick with right button.voidrightClick(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, setValueAsUser
-
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.
-