Package org.openqa.selenium.htmlunit
Interface HtmlUnitInputProcessor.HtmlUnitAction
- All Known Implementing Classes:
HtmlUnitInputProcessor.KeyDownHtmlUnitAction,HtmlUnitInputProcessor.KeySendHtmlUnitAction,HtmlUnitInputProcessor.KeyUpHtmlUnitAction,HtmlUnitInputProcessor.PointerDownHtmlUnitAction,HtmlUnitInputProcessor.PointerHtmlUnitAction,HtmlUnitInputProcessor.PointerMoveHtmlUnitAction,HtmlUnitInputProcessor.PointerUpHtmlUnitAction
- Enclosing class:
- HtmlUnitInputProcessor
public static interface HtmlUnitInputProcessor.HtmlUnitAction
Represents a low-level input action that can be executed by an
HtmlUnitDriver.
Implementations define how a specific action (keyboard, mouse, etc.) is processed.-
Method Summary
Modifier and TypeMethodDescriptionjoin(HtmlUnitInputProcessor.HtmlUnitAction previousAction) Combines this action with a previous action, returning a newHtmlUnitInputProcessor.HtmlUnitActionthat represents the joined sequence.voidprocess(HtmlUnitDriver driver) Processes this action using the givenHtmlUnitDriver.
-
Method Details
-
process
Processes this action using the givenHtmlUnitDriver.- Parameters:
driver- the driver used to execute the action; must not benull
-
join
Combines this action with a previous action, returning a newHtmlUnitInputProcessor.HtmlUnitActionthat represents the joined sequence. This can be used to optimize or merge actions.- Parameters:
previousAction- the action to join with; may benull- Returns:
- a new
HtmlUnitInputProcessor.HtmlUnitActionrepresenting the combined actions
-