Package com.vaadin.browserless
Interface Clickable
-
- All Implemented Interfaces:
public interface Clickable<T extends Component>Mixin interface for component testers that support click simulation. This interface provides default implementations for various click operations including left, middle, and right clicks with optional meta keys.
- Since:
1.0
-
-
Method Summary
Modifier and Type Method Description abstract TgetComponent()Gets the component being tested. abstract voidensureComponentIsUsable()Ensures the component is in a usable state before interaction. 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. voidclick(int button, MetaKeys metaKeys)Performs a click with the specified button and meta keys. -
-
Method Detail
-
getComponent
abstract T getComponent()
Gets the component being tested.
- Returns:
the component under test
-
ensureComponentIsUsable
abstract void ensureComponentIsUsable()
Ensures the component is in a usable state before interaction.
-
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.
- Parameters:
metaKeys- the meta keys pressed during click
-
middleClick
void middleClick()
Click with middle button.
-
middleClick
void middleClick(MetaKeys metaKeys)
Click with middle button and given meta keys.
- Parameters:
metaKeys- the meta keys pressed during click
-
rightClick
void rightClick()
Click with right button.
-
rightClick
void rightClick(MetaKeys metaKeys)
Click with right button and given meta keys.
- Parameters:
metaKeys- the meta keys pressed during click
-
-
-
-