public static class WDLibrary.RBT
extends java.lang.Object
| Constructor and Description |
|---|
RBT() |
| Modifier and Type | Method and Description |
|---|---|
static void |
click(java.awt.Point location,
org.openqa.selenium.Keys specialKey,
int mouseButtonNumber,
int nclicks)
Use Robot to click locally or remotely (through RMI).
|
static void |
click(RemoteDriver rd,
java.awt.Point location,
org.openqa.selenium.Keys specialKey,
int mouseButtonNumber,
int nclicks)
Use Robot to click locally or remotely (through RMI).
|
static java.lang.Object |
inputChars(RemoteDriver rd,
java.lang.String chars)
Type keyboard input characters unmodified.
|
static java.lang.Object |
inputChars(java.lang.String chars)
Type keyboard input characters unmodified.
|
static java.lang.Object |
inputKeys(RemoteDriver rd,
java.lang.String keys)
Type keyboard input.
|
static java.lang.Object |
inputKeys(java.lang.String keys)
Type keyboard input.
|
static boolean |
keyPress(int keycode)
Press down a Key locally if the current RemoteDriver is null or is local;
otherwise if the current RemoteDriver is remote, then press down a key remotely.
|
static boolean |
keyPress(RemoteDriver rd,
int keycode)
Press down a Key locally if the RemoteDriver 'rd' is null or is local;
otherwise if the RemoteDriver 'rd' is remote, then press down a key remotely.
|
static boolean |
keyRelease(int keycode)
Release a Key locally if the current RemoteDriver is null or is local;
otherwise if the current RemoteDriver is remote, then release a key remotely.
|
static boolean |
keyRelease(RemoteDriver rd,
int keycode)
Release a Key locally if the RemoteDriver 'rd' is null or is local;
otherwise if the RemoteDriver 'rd' is remote, then release a key remotely.
|
static boolean |
mouseWheel(int wheelAmt)
Scroll the mouse wheel by Java Robot.
The scroll happens locally if the current RemoteDriver is null or is local; otherwise if the current RemoteDriver is remote, then it happens remotely. |
static boolean |
mouseWheel(RemoteDriver rd,
int wheelAmt)
Scroll the mouse wheel by Java Robot.
The scroll happens locally if the RemoteDriver 'rd' is null or is local; otherwise if the RemoteDriver 'rd' is remote, then it happens remotely. |
public static void click(java.awt.Point location,
org.openqa.selenium.Keys specialKey,
int mouseButtonNumber,
int nclicks)
throws java.lang.Exception
location - Point, The screen location to click at.specialKey - Keys, The selenium Keys value, representing the key (such as Ctrl, Alt) pressed during mouse click.mouseButtonNumber - int, Representing the mouse button to click, such as WDLibrary.MOUSE_BUTTON_LEFT.nclicks - int, How many times to click mouse.java.lang.Exceptionpublic static void click(RemoteDriver rd, java.awt.Point location, org.openqa.selenium.Keys specialKey, int mouseButtonNumber, int nclicks) throws java.lang.Exception
rd - RemoteDriver, The Remote Driver with an RMI agent.location - Point, The screen location to click at.specialKey - Keys, The selenium Keys value, representing the key (such as Ctrl, Alt) pressed during mouse click.mouseButtonNumber - int, Representing the mouse button to click, such as WDLibrary.MOUSE_BUTTON_LEFT.nclicks - int, How many times to click mouse.java.lang.Exceptionpublic static boolean keyPress(int keycode)
throws SeleniumPlusException
keycode - int, keycode Key to press (e.g. KeyEvent.VK_A)SeleniumPlusExceptionpublic static boolean keyPress(RemoteDriver rd, int keycode) throws SeleniumPlusException
rd - RemoteDriver, The Remote Driver with an RMI agent.keycode - int, keycode Key to press (e.g. KeyEvent.VK_A)SeleniumPlusExceptionpublic static boolean keyRelease(int keycode)
throws SeleniumPlusException
keycode - int, keycode Key to release (e.g. KeyEvent.VK_A)SeleniumPlusExceptionpublic static boolean keyRelease(RemoteDriver rd, int keycode) throws SeleniumPlusException
rd - RemoteDriver, The Remote Driver with an RMI agent.keycode - int, keycode Key to release (e.g. KeyEvent.VK_A)SeleniumPlusExceptionpublic static java.lang.Object inputKeys(java.lang.String keys)
throws SeleniumPlusException
CreateUnicodeMap class.keys - String, the keys to enter.SeleniumPlusException - if the "bypass robot" is set to true.public static java.lang.Object inputKeys(RemoteDriver rd, java.lang.String keys) throws SeleniumPlusException
CreateUnicodeMap class.rd - RemoteDriver, The Remote Driver with an RMI agent.keys - String, the keys to enter.SeleniumPlusException - if the "bypass robot" is set to true.public static java.lang.Object inputChars(java.lang.String chars)
throws SeleniumPlusException
chars - String, the characters to enter.SeleniumPlusExceptionpublic static java.lang.Object inputChars(RemoteDriver rd, java.lang.String chars) throws SeleniumPlusException
rd - RemoteDriver, The Remote Driver with an RMI agent.chars - String, the characters to enter.SeleniumPlusExceptionpublic static boolean mouseWheel(int wheelAmt)
throws SeleniumPlusException
wheelAmt - int, the wheel amount to scroll.SeleniumPlusException - if the "bypass robot" is set to true.public static boolean mouseWheel(RemoteDriver rd, int wheelAmt) throws SeleniumPlusException
rd - RemoteDriver, The Remote Driver with an RMI agent.wheelAmt - int, the wheel amount to scroll.SeleniumPlusException - if the "bypass robot" is set to true.Copyright © SAS Institute. All Rights Reserved.