org.openqa.selenium.interactions
Class KeyDownAction

java.lang.Object
  extended by org.openqa.selenium.internal.interactions.BaseAction
      extended by org.openqa.selenium.internal.interactions.KeysRelatedAction
          extended by org.openqa.selenium.internal.interactions.SingleKeyAction
              extended by org.openqa.selenium.interactions.KeyDownAction
All Implemented Interfaces:
Action

public class KeyDownAction
extends SingleKeyAction
implements Action

Emulates key press only, without the release.


Field Summary
 
Fields inherited from class org.openqa.selenium.internal.interactions.SingleKeyAction
key
 
Fields inherited from class org.openqa.selenium.internal.interactions.BaseAction
onElement, parent
 
Constructor Summary
KeyDownAction(WebDriver parent, Keys key)
           
KeyDownAction(WebDriver parent, WebElement toElement, Keys key)
           
 
Method Summary
 void perform()
           
 
Methods inherited from class org.openqa.selenium.internal.interactions.KeysRelatedAction
focusOnElement, getKeyboard
 
Methods inherited from class org.openqa.selenium.internal.interactions.BaseAction
getMouse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyDownAction

public KeyDownAction(WebDriver parent,
                     WebElement toElement,
                     Keys key)

KeyDownAction

public KeyDownAction(WebDriver parent,
                     Keys key)
Method Detail

perform

public void perform()
Specified by:
perform in interface Action


Copyright © 2011. All Rights Reserved.