| 程序包 | 说明 |
|---|---|
| org.openqa.selenium | |
| org.openqa.selenium.interactions |
| 限定符和类型 | 方法和说明 |
|---|---|
static Keys |
Keys.getKeyFromUnicode(char key)
Get the special key representation,
Keys, of the supplied character if there is one. |
static Keys |
Keys.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Keys[] |
Keys.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Actions |
Actions.keyDown(Keys theKey)
Performs a modifier key press.
|
Actions |
Actions.keyDown(WebElement element,
Keys theKey)
Performs a modifier key press after focusing on an element.
|
Actions |
Actions.keyUp(Keys theKey)
Performs a modifier key release.
|
Actions |
Actions.keyUp(WebElement element,
Keys theKey)
Performs a modifier key release after focusing on an element.
|
| 构造器和说明 |
|---|
KeyDownAction(Keyboard keyboard,
Mouse mouse,
Keys key) |
KeyDownAction(Keyboard keyboard,
Mouse mouse,
Locatable locationProvider,
Keys key) |
KeyUpAction(Keyboard keyboard,
Mouse mouse,
Keys key) |
KeyUpAction(Keyboard keyboard,
Mouse mouse,
Locatable locationProvider,
Keys key) |