Package org.openqa.selenium.htmlunit
Class HtmlUnitInputProcessor.KeySendHtmlUnitAction
java.lang.Object
org.openqa.selenium.htmlunit.HtmlUnitInputProcessor.KeySendHtmlUnitAction
- All Implemented Interfaces:
HtmlUnitInputProcessor.HtmlUnitAction
- Enclosing class:
- HtmlUnitInputProcessor
public static final class HtmlUnitInputProcessor.KeySendHtmlUnitAction
extends Object
implements HtmlUnitInputProcessor.HtmlUnitAction
An
HtmlUnitInputProcessor.HtmlUnitAction representing a complete key press sequence.
The action sends the key value directly through the driver's keyboard.-
Constructor Summary
ConstructorsConstructorDescriptionKeySendHtmlUnitAction(String value) Creates a new key-send 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
-
KeySendHtmlUnitAction
Creates a new key-send action for the given key value.- Parameters:
value- the key value to send
-
-
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
-