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
AnHtmlUnitInputProcessor.HtmlUnitActionthat represents a key-down event. The action presses the specified key using the driver's keyboard.
-
-
Constructor Summary
Constructors Constructor Description KeyDownHtmlUnitAction(String value)Creates a new key-down action for the given key value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlUnitInputProcessor.HtmlUnitActionjoin(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 Detail
-
KeyDownHtmlUnitAction
public KeyDownHtmlUnitAction(String value)
Creates a new key-down action for the given key value.- Parameters:
value- the key to press
-
-
Method Detail
-
process
public void process(HtmlUnitDriver driver)
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
-
-