Package com.vaadin.flow.component.button
Class ButtonTester
-
- All Implemented Interfaces:
public class ButtonTester<T extends Button> extends ComponentTester<T>
Tester for Button components.
-
-
Constructor Summary
Constructors Constructor Description ButtonTester(T component)Wrap given button for testing.
-
Method Summary
Modifier and Type Method Description voidclick()If the component is usable send click to component as if it was from the client. voidclick(MetaKeys metaKeys)If the component is usable send click to component as if it was from the client with defined meta keys pressed. voidmiddleClick()Click with middle button. voidmiddleClick(MetaKeys metaKeys)Click with middle button and given meta keys. voidrightClick()Click with right button. voidrightClick(MetaKeys metaKeys)Click with right button and given meta keys. -
-
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.
-
-
-
-