public class RobotEngine extends AbstractEngine
elementsFactory, uiDriver| Constructor and Description |
|---|
RobotEngine(RobotDriver robotDriver) |
| Modifier and Type | Method and Description |
|---|---|
void |
clickAt(int x,
int y)
Move the mouse at (X,Y) screen position and then click the mouse button 1
|
void |
keyPress(int keyCode)
Presses a given key.
|
void |
keyRelease(int keyCode)
Releases a given key.
|
void |
pressAltF4()
Press Alt + F4 keys
|
void |
pressEsc()
Press the Escape key
|
void |
type(int... keyCodes)
Type some keys defined in java.awt.event.KeyEvent
|
void |
type(String text)
Type some text
|
void |
type(String text,
int... keyCodes)
Type some text but combine them with some keys defined in java.awt.event.KeyEvent
It first presses the special key codes(for example Alt + Shift), then it types the provided text and then it releases the special keys in reversed order(for example Shift + Alt ) |
void |
typeEnter()
Type the ENTER key
|
void |
typeSpace()
Type the SPACE key
|
void |
typeTab()
TAB once
|
void |
typeTab(int numberOfTabs)
TAB a number of times
|
getMapSection, loadMapFile, setMapSectionpublic RobotEngine(RobotDriver robotDriver)
public void clickAt(int x,
int y)
x - the X coordinatey - the Y coordinatepublic void type(String text)
text - the text to typepublic void type(int... keyCodes)
keyCodes - the special key codespublic void type(String text, int... keyCodes)
text - the text to typekeyCodes - the special key codespublic void typeTab()
public void typeTab(int numberOfTabs)
numberOfTabs - how many tabspublic void typeEnter()
public void pressEsc()
public void pressAltF4()
public void typeSpace()
public void keyPress(int keyCode)
keyCode - Key to press (e.g. KeyEvent.VK_A)public void keyRelease(int keyCode)
keyCode - Key to release (e.g. KeyEvent.VK_A)Copyright © 2017 Axway Software. All rights reserved.