Package org.openqa.selenium.htmlunit
Class HtmlUnitInputProcessor.KeyDownHtmlUnitAction
java.lang.Object
org.openqa.selenium.htmlunit.HtmlUnitInputProcessor.KeyDownHtmlUnitAction
- All Implemented Interfaces:
HtmlUnitInputProcessor.HtmlUnitAction
- Enclosing class:
- HtmlUnitInputProcessor
public static final class HtmlUnitInputProcessor.KeyDownHtmlUnitAction
extends Object
implements HtmlUnitInputProcessor.HtmlUnitAction
An
HtmlUnitInputProcessor.HtmlUnitAction that represents a key-down event.
The action presses the specified key using the driver's keyboard.-
Constructor Summary
ConstructorsConstructorDescriptionKeyDownHtmlUnitAction(String value) Creates a new key-down action for the given key value. -
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.
-
Constructor Details
-
KeyDownHtmlUnitAction
Creates a new key-down action for the given key value.- Parameters:
value- the key to press
-
-
Method Details
-
process
Description copied from interface:HtmlUnitInputProcessor.HtmlUnitActionProcesses this action using the givenHtmlUnitDriver.- Specified by:
processin interfaceHtmlUnitInputProcessor.HtmlUnitAction- Parameters:
driver- the driver used to execute the action; must not benull
-
join
public HtmlUnitInputProcessor.HtmlUnitAction join(HtmlUnitInputProcessor.HtmlUnitAction previousAction) Description copied from interface:HtmlUnitInputProcessor.HtmlUnitActionCombines this action with a previous action, returning a newHtmlUnitInputProcessor.HtmlUnitActionthat represents the joined sequence. This can be used to optimize or merge actions.- Specified by:
joinin interfaceHtmlUnitInputProcessor.HtmlUnitAction- Parameters:
previousAction- the action to join with; may benull- Returns:
- a new
HtmlUnitInputProcessor.HtmlUnitActionrepresenting the combined actions
-