|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cobra.ldtp.Ldtp
public class Ldtp
Ldtp class is a wrapper to the Ldtp GUI automation library, works on both Windows and Linux environment
| Constructor Summary | |
|---|---|
Ldtp(java.lang.String windowName)
Ldtp |
|
Ldtp(java.lang.String windowName,
java.lang.String serverAddr)
Ldtp |
|
Ldtp(java.lang.String windowName,
java.lang.String serverAddr,
java.lang.String serverPort)
Ldtp |
|
Ldtp(java.lang.String windowName,
java.lang.String serverAddr,
java.lang.String serverPort,
java.lang.String windowsEnv)
Ldtp |
|
| Method Summary | |
|---|---|
int |
activateText(java.lang.String objName)
activateText Activates text area for focus |
int |
activateWindow(java.lang.String windowName)
activateWindow Activate given window that is currently open |
int |
appendText(java.lang.String objName,
java.lang.String data)
appendText Appends given text to existing text |
int |
check(java.lang.String objName)
check Check marks the check box |
int |
checkRow(java.lang.String objName,
int rowIndex)
checkRow Checkbox the table cell based on row index and column 0 |
int |
checkRow(java.lang.String objName,
int rowIndex,
int column)
checkRow Checkbox the table cell based on row index |
int |
click(java.lang.String objName)
click Clicks on the object inside the window |
int |
closeWindow()
closeWindow Close all window that are currently open |
int |
closeWindow(java.lang.String windowName)
closeWindow Close given window that is currently open |
int |
comboSelect(java.lang.String objName,
java.lang.String itemName)
comboSelect Select item in combo box |
int |
comboSelectIndex(java.lang.String objName,
int itemIndex)
comboSelectIndex Select given index in the combo box |
int |
copyText(java.lang.String objName,
int startPos)
copyText Copy the text to clipboard |
int |
copyText(java.lang.String objName,
int startPos,
int endPos)
copyText Copy the text to clipboard |
int |
cutText(java.lang.String objName,
int startPos)
cutText Cut the text and copy to clipboard |
int |
cutText(java.lang.String objName,
int startPos,
int endPos)
cutText Cut the text and copy to clipboard |
int |
decrease(java.lang.String objName,
int iterations)
decrease Decrease slider value with given iterations |
int |
delayCmdExec(int delay)
delayCmdExec Delay each actions by given seconds |
int |
deleteText(java.lang.String objName,
int startPos)
deleteText Delete the text |
int |
deleteText(java.lang.String objName,
int startPos,
int endPos)
deleteText Delete the text |
int |
deRegisterEvent(java.lang.String eventName)
deRegisterEvent De-Register event to watch for |
int |
deRegisterKbEvent(java.lang.String keys)
deRegisterKbEvent De-Register Keyboard event to watch for |
int |
deRegisterKbEvent(java.lang.String keys,
int modifiers)
deRegisterKbEvent De-Register Keyboard event to watch for |
int |
doesMenuItemExist(java.lang.String objName)
doesMenuItemExist Verifies whether the given menu item is enabled or not |
int |
doesRowExist(java.lang.String objName,
java.lang.String rowText)
doesRowExist Check whether a row exist with the given text |
int |
doesRowExist(java.lang.String objName,
java.lang.String rowText,
java.lang.Boolean partialMatch)
doesRowExist Check whether a row exist with the given partial text |
int |
doubleClick(java.lang.String objName)
doubleClick Generate mouse double click on the object |
int |
doubleClickRow(java.lang.String objName,
java.lang.String rowText)
doubleClickRow Double click on table cell row based on row text |
int |
enterString(java.lang.String data)
enterString Generates keyboard input on the current focused window |
int |
enterString(java.lang.String objName,
java.lang.String data)
enterString Generates keyboard input |
int |
expandTableCell(java.lang.String objName,
int rowIndex)
expandTableCell Expand table cell based on row index and column 0 |
int |
expandTableCell(java.lang.String objName,
int rowIndex,
int column)
expandTableCell Expand table cell based on row index and column |
int |
generateKeyEvent(java.lang.String data)
generateKeyEvent Generate keyboard event |
int |
generateMouseEvent(int x,
int y)
generateMouseEvent Generate mouse event |
int |
generateMouseEvent(int x,
int y,
java.lang.String eventType)
generateMouseEvent Generate mouse event |
java.lang.String[] |
getAllItem(java.lang.String objName)
getAllItem Gets all item from combo box |
java.lang.String[] |
getAllStates(java.lang.String objName)
getAllStates Get all states of given object |
java.lang.String[] |
getAppList()
getAppList Get currently open application list |
java.lang.String |
getCellValue(java.lang.String objName,
int rowIndex)
getCellValue Gets cell value from row index and column 0 |
java.lang.String |
getCellValue(java.lang.String objName,
int rowIndex,
int column)
getCellValue Gets cell value from row index and column |
int |
getCharCount(java.lang.String objName)
getCharCount Get character count of a text field |
java.lang.String[] |
getChild(java.lang.String childName)
getChild Get children matching child name |
java.lang.String[] |
getChild(java.lang.String childName,
java.lang.String role)
getChild Get children matching child name and role |
java.lang.String[] |
getChild(java.lang.String childName,
java.lang.String role,
java.lang.String property)
getChild Get children matching child name, role, property |
java.lang.Double[] |
getCpuStat(java.lang.String processName)
getCpuStat Get CPU stat |
int |
getCursorPosition(java.lang.String objName)
getCursorPosition Gets the current cursor position |
java.lang.String |
getLastLog()
getLastLog Gets last log from server |
double |
getMax(java.lang.String objName)
getMax Get maximum spin button value |
double |
getMaxIncrement(java.lang.String objName)
getMaxIncrement Get maximum increment value |
double |
getMaxValue(java.lang.String objName)
getMaxValue Get maximum slider value |
java.lang.Integer[] |
getMemoryStat(java.lang.String processName)
getMemoryStat Get memory stat |
double |
getMinIncrement(java.lang.String objName)
getMinIncrement Get minimum increment value |
double |
getMinValue(java.lang.String objName)
getMinValue Get minimum slider value |
java.lang.String[] |
getObjectInfo(java.lang.String objName)
getObjectList Get current object info |
java.lang.String[] |
getObjectList()
getObjectList Get current windows object list |
java.lang.String[] |
getObjectNameAtCoords()
getObjectNameAtCoords Get object name at co-ordinates without any delay |
java.lang.String[] |
getObjectNameAtCoords(double waitTime)
getObjectNameAtCoords Get object name at co-ordinates |
java.lang.String |
getObjectProperty(java.lang.String objName,
java.lang.String property)
getObjectProperty Get current object property |
java.lang.Integer[] |
getObjectSize(java.lang.String objName)
getObjectSize Get object size |
int |
getPanelChildCount(java.lang.String objName)
getPanelChildCount Get child count of a panel |
int |
getRowCount(java.lang.String objName)
getRowCount Get table cell row count |
double |
getSliderValue(java.lang.String objName)
getSliderValue Get value from slider |
java.lang.String |
getStatusBarText(java.lang.String objName)
pasteText Paste the text from clipboard |
int |
getTabCount(java.lang.String objName)
getTabCount Get number of tabs currently opened |
int |
getTableRowIndex(java.lang.String objName,
java.lang.String rowText)
getTableRowIndex Get table row index based on row text |
java.lang.String |
getTabName(java.lang.String objName,
int tabIndex)
getTabName Get tab name based on given index |
java.lang.String |
getTextValue(java.lang.String objName)
getTextValue Gets text value |
java.lang.String |
getTextValue(java.lang.String objName,
int startPos)
getTextValue Gets text value |
java.lang.String |
getTextValue(java.lang.String objName,
int startPos,
int endPos)
getTextValue Gets text value |
double |
getValue(java.lang.String objName)
getValue Get value from spin button |
java.lang.String[] |
getWindowList()
getWindowList Get currently open window list |
java.lang.String |
getWindowName()
getWindowName Get currently set window name |
java.lang.Integer[] |
getWindowSize()
getWindowSize Get window size |
int |
grabFocus(java.lang.String objName)
grabFocus Grabs focus of given object name |
int |
guiExist()
guiExist Verifies whether the current window exist or not |
int |
guiExist(java.lang.String objName)
guiExist Verifies whether the current window and given object exist or not |
int |
hasState(java.lang.String objName,
java.lang.String state)
hasState Verifies whether the object has given state |
int |
hasState(java.lang.String objName,
java.lang.String state,
int guiTimeOut)
hasState Verifies whether the object has given state |
int |
hideList(java.lang.String objName)
hideList Hide combo box entries |
java.lang.String |
imageCapture()
imageCapture Capture screenshot |
java.lang.String |
imageCapture(int height)
imageCapture Capture screenshot |
java.lang.String |
imageCapture(int width,
int height)
imageCapture Capture screenshot |
java.lang.String |
imageCapture(int y,
int width,
int height)
imageCapture Capture screenshot |
java.lang.String |
imageCapture(int x,
int y,
int width,
int height)
imageCapture Capture screenshot |
java.lang.String |
imageCapture(java.lang.String windowName)
imageCapture Capture screenshot |
java.lang.String |
imageCapture(java.lang.String windowName,
int x,
int y,
int width,
int height)
imageCapture Capture screenshot |
int |
increase(java.lang.String objName,
int iterations)
increase Increase slider value with given iterations |
int |
invokeMenu(java.lang.String objName)
invokeMenu Invokes menu item that are on Linux system tray |
int |
isChildIndexSelected(java.lang.String objName,
int itemIndex)
isChildIndexSelected Is child index selected in combobox |
int |
isChildSelected(java.lang.String objName,
java.lang.String itemName)
isChildSelected Is child selected in combobox |
int |
isTextStateEnabled(java.lang.String objName)
isTextStateEnabled Verifies whether text field is enabled or not |
int |
keyPress(java.lang.String data)
keyPress Presses keyboard input |
int |
keyRelease(java.lang.String data)
keyRelease Releases keyboard input |
int |
launchApp(java.lang.String cmd)
launchApp Launch application |
int |
launchApp(java.lang.String cmd,
java.lang.String[] args)
launchApp Launch application |
int |
launchApp(java.lang.String cmd,
java.lang.String[] args,
int delay)
launchApp Launch application |
int |
launchApp(java.lang.String cmd,
java.lang.String[] args,
int delay,
int env)
launchApp Launch application |
int |
launchApp(java.lang.String cmd,
java.lang.String[] args,
int delay,
int env,
java.lang.String lang)
launchApp Launch application |
java.lang.String[] |
listSubMenus(java.lang.String objName)
listSubMenus Lists all the submenu items |
static void |
main(java.lang.String[] args)
|
int |
maximizeWindow()
maximizeWindow Maximize all windows that are currently open |
int |
maximizeWindow(java.lang.String windowName)
maximizeWindow Maximize given window that is currently open |
int |
menuCheck(java.lang.String objName)
menuCheck Checks the menuitem |
int |
menuItemEnabled(java.lang.String objName)
menuItemEnabled Verifies whether the menuitem is enabled |
int |
menuUnCheck(java.lang.String objName)
menuUnCheck Un-checks the menuitem |
int |
minimizeWindow()
minimizeWindow Minimize all window that are currently open |
int |
minimizeWindow(java.lang.String windowName)
minimizeWindow Minimize given window that is currently open |
int |
mouseLeftClick(java.lang.String objName)
mouseLeftClick Generate mouse left click on the object |
int |
mouseMove(java.lang.String objName)
mouseMove Move mouse to the object |
int |
mouseRightClick(java.lang.String objName)
mouseRightClick Generate mouse right click on the object |
int |
objectExist(java.lang.String objName)
objectExist Verifies whether the window and object exist |
int |
oneDown(java.lang.String objName,
int iterations)
oneDown Down scrollbar with given iterations |
int |
oneLeft(java.lang.String objName,
int iterations)
oneLeft Left scrollbar with given iterations |
int |
oneRight(java.lang.String objName,
int iterations)
oneRight Right scrollbar with given iterations |
int |
oneUp(java.lang.String objName,
int iterations)
oneUp Up scrollbar with given iterations |
int |
onWindowCreate(java.lang.String callback)
onWindowCreate On new window opened callback the method |
int |
pasteText(java.lang.String objName)
pasteText Paste the text from clipboard |
int |
pasteText(java.lang.String objName,
int cursorPos)
pasteText Paste the text from clipboard |
int |
press(java.lang.String objName)
press Press the object |
int |
registerEvent(java.lang.String eventName)
registerEvent Register event to watch for |
int |
registerKbEvent(java.lang.String keys)
registerKbEvent register Keyboard event to watch for |
int |
registerKbEvent(java.lang.String keys,
int modifiers)
registerKbEvent register Keyboard event to watch for |
int |
reMap()
reMap Re-Map current window |
int |
removeCallback()
removeCallback Remove callback method |
int |
rightClick(java.lang.String objName,
java.lang.String rowText)
rightClick Right click on table cell with matching row text |
int |
scrollDown(java.lang.String objName)
scrollDown Scroll down once |
int |
scrollLeft(java.lang.String objName)
scrollLeft Scroll left once |
int |
scrollRight(java.lang.String objName)
scrollRight Scroll right once |
int |
scrollUp(java.lang.String objName)
scrollUp Scroll up once |
int |
selectAll(java.lang.String objName)
selectAll Select all the item in combo box |
int |
selectedItemCount(java.lang.String objName)
selectedItemCount Get number of items selected in combo box |
int |
selectIndex(java.lang.String objName,
int itemIndex)
selectIndex Select given index in the combo box |
int |
selectItem(java.lang.String objName,
java.lang.String itemName)
selectItem Select item in combo box |
int |
selectLastRow(java.lang.String objName)
selectLastRow Select last table cell in the table |
int |
selectMenuItem(java.lang.String objName)
selectMenuItem Select given menu item |
int |
selectPanel(java.lang.String objName,
int index)
selectPanel Select panel by index |
int |
selectPanelIndex(java.lang.String objName,
int index)
selectPanelIndex Select panel by index |
int |
selectPanelName(java.lang.String objName,
java.lang.String name)
selectPanelName Select panel by name |
int |
selectRow(java.lang.String objName,
java.lang.String rowText)
selectRow Select table cell with row text matching |
int |
selectRowIndex(java.lang.String objName,
int rowIndex)
selectRowIndex Select table cell based on index |
int |
selectRowPartialMatch(java.lang.String objName,
java.lang.String rowText)
selectRowPartialMatch Select table cell with partial row text matching |
int |
selectTab(java.lang.String objName,
java.lang.String tabName)
selectTab Select tab based on the given name |
int |
selectTabIndex(java.lang.String objName,
int tabIndex)
selectTabIndex Select tab based on the given index |
int |
setCellValue(java.lang.String objName,
int rowIndex,
int column,
java.lang.String data)
setCellValue Set cell value with the given data on row index and column |
int |
setCellValue(java.lang.String objName,
int rowIndex,
java.lang.String data)
setCellValue Set cell value with the given data on row index |
int |
setCursorPosition(java.lang.String objName,
int cursorPos)
setCursorPosition Moves the cursor position |
int |
setMax(java.lang.String objName)
setMax Set maximum value in spin button |
int |
setMin(java.lang.String objName)
setMin Set minimum value in spin button |
int |
setTextValue(java.lang.String objName,
java.lang.String data)
setTextValue Sets text value |
int |
setValue(java.lang.String objName,
double value)
setValue Set value with given double value |
void |
setWindowName(java.lang.String windowName)
setWindowName Change window name |
int |
showList(java.lang.String objName)
showList Show combo box entries |
int |
simulateMouseMove(int source_x,
int source_y,
int dest_x,
int dest_y)
simulateMouseMove Simulate mouse move from source to destination |
int |
simulateMouseMove(int source_x,
int source_y,
int dest_x,
int dest_y,
double delay)
simulateMouseMove Simulate mouse move from source to destination |
int |
singleClickRow(java.lang.String objName,
java.lang.String rowText)
singleClickRow Single click on table cell row based on row text |
int |
startProcessMonitor(java.lang.String processName)
startProcessMonitor Starts process monitor |
int |
stateEnabled(java.lang.String objName)
stateEnabled Verify whether the object state is enabled |
int |
stopProcessMonitor(java.lang.String processName,
int interval)
stopProcessMonitor Stop process monitor |
int |
unCheck(java.lang.String objName)
unCheck Un-check check box |
int |
unCheckRow(java.lang.String objName,
int rowIndex)
unCheckRow Un-Checkbox the table cell based on row index and column 0 |
int |
unCheckRow(java.lang.String objName,
int rowIndex,
int column)
unCheckRow Un-Checkbox the table cell based on row index and column |
int |
unMaximizeWindow()
unMaximizeWindow Un-maximize all windows |
int |
unMaximizeWindow(java.lang.String windowName)
unMaximizeWindow Un-maximize given window that is currently open |
int |
unMinimizeWindow()
unMinimizeWindow Un-minize all windows |
int |
unMinimizeWindow(java.lang.String windowName)
unMinimizeWindow Un-minize given window |
int |
unSelectAll(java.lang.String objName)
unSelectAll Un-select all the item in combo box |
int |
unSelectIndex(java.lang.String objName,
int itemIndex)
unSelectIndex Unselect given index from the combo box selection list |
int |
unSelectItem(java.lang.String objName,
java.lang.String itemName)
unSelectItem Unselect item in combo box |
int |
verifyCheck(java.lang.String objName)
verifyCheck Verify whether the check box is checked |
int |
verifyDropDown(java.lang.String objName)
verifyDropDown Verify drop down is shown |
int |
verifyHideList(java.lang.String objName)
verifyHideList Verify combo box list is closed |
int |
verifyMenuCheck(java.lang.String objName)
verifyMenuCheck Verifies whether the menuitem is checked |
int |
verifyMenuUnCheck(java.lang.String objName)
verifyMenuUnCheck Verifies whether the menuitem is un-checked |
int |
verifyPartialMatch(java.lang.String objName,
java.lang.String data)
verifyPartialMatch Verify text with partial string |
int |
verifyPartialTableCell(java.lang.String objName,
int rowIndex,
int column,
java.lang.String rowText)
verifyPartialTableCell Verify table cell with partial text |
int |
verifyPushButton(java.lang.String objName)
verifyPushButton Verify whether the given object is push button |
int |
verifyScrollbarHorizontal(java.lang.String objName)
verifyScrollbarHorizontal Verify scrollbar is horizontal |
int |
verifyScrollbarVertical(java.lang.String objName)
verifyScrollbarVertical Verify scrollbar is vertical |
int |
verifySelect(java.lang.String objName,
java.lang.String itemName)
verifySelect Verify text is selected in combobox |
int |
verifySetText(java.lang.String objName,
java.lang.String data)
verifySetText Verifies complete text is available in the text field |
int |
verifySetValue(java.lang.String objName,
double rowValue)
verifySetValue Verify whether the value set is correct |
int |
verifyShowList(java.lang.String objName)
verifyShowList Verify combo box list is displayed |
int |
verifySliderHorizontal(java.lang.String objName)
verifySliderHorizontal Verify slider is horizontal |
int |
verifySliderVertical(java.lang.String objName)
verifySliderVertical Verify slider is vertical |
int |
verifyTableCell(java.lang.String objName,
int rowIndex,
int column,
java.lang.String rowText)
verifyTableCell Verify table cell text |
int |
verifyTabName(java.lang.String objName,
java.lang.String tabName)
verifyTabName Verify tab name is correct |
int |
verifyToggled(java.lang.String objName)
verifyToggled Verify whether the toggle button is toggled |
int |
verifyUnCheck(java.lang.String objName)
verifyUnCheck Verify whether the check box is un-checked |
int |
waitTillGuiExist()
waitTillGuiExist Wait for the current window for 30 seconds |
int |
waitTillGuiExist(int guiTimeOut)
waitTillGuiExist Wait for the current window for given seconds |
int |
waitTillGuiExist(int guiTimeOut,
java.lang.String state)
waitTillGuiExist Wait for the current window, state for given seconds |
int |
waitTillGuiExist(java.lang.String objName)
waitTillGuiExist Wait for the current window and object name for 30 seconds |
int |
waitTillGuiExist(java.lang.String objName,
int guiTimeOut)
waitTillGuiExist Wait for the current window and object name for given seconds |
int |
waitTillGuiExist(java.lang.String objName,
int guiTimeOut,
java.lang.String state)
waitTillGuiExist Wait for the current window, object name, state for given seconds |
int |
waitTillGuiNotExist()
waitTillGuiNotExist Wait for the current window to disappear for 30 seconds |
int |
waitTillGuiNotExist(int guiTimeOut)
waitTillGuiNotExist Wait for the current window to disappear for given seconds |
int |
waitTillGuiNotExist(int guiTimeOut,
java.lang.String state)
waitTillGuiNotExist Wait for the current window, state to disapper for given seconds |
int |
waitTillGuiNotExist(java.lang.String objName)
waitTillGuiNotExist Wait for the current window, object name to disappear for 30 seconds |
int |
waitTillGuiNotExist(java.lang.String objName,
int guiTimeOut)
waitTillGuiNotExist Wait for the current window, object name to disappear for given seconds |
int |
waitTillGuiNotExist(java.lang.String objName,
int guiTimeOut,
java.lang.String state)
waitTillGuiNotExist Wait for the current window, object name, state to disappear for given seconds |
int |
waitTime()
waitTime Sleep for 5 seconds |
int |
waitTime(int timeout)
waitTime Sleep for given seconds |
int |
windowUpTime()
windowUpTime Get uptime of window |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ldtp(java.lang.String windowName)
windowName - Window to be manipulated
public Ldtp(java.lang.String windowName,
java.lang.String serverAddr)
windowName - Window to be manipulatedserverAddr - Server address to connect to
public Ldtp(java.lang.String windowName,
java.lang.String serverAddr,
java.lang.String serverPort)
windowName - Window to be manipulatedserverAddr - Server address to connect toserverPort - Server port to connect to
public Ldtp(java.lang.String windowName,
java.lang.String serverAddr,
java.lang.String serverPort,
java.lang.String windowsEnv)
windowName - Window to be manipulatedserverAddr - Server address to connect toserverPort - Server port to connect towindowsEnv - Running the test in windows environment ("true" or "false" string value)| Method Detail |
|---|
public void setWindowName(java.lang.String windowName)
windowName - Window to be manipulatedpublic java.lang.String getWindowName()
public java.lang.String[] getWindowList()
throws LdtpExecutionError
LdtpExecutionError
public java.lang.String[] getAppList()
throws LdtpExecutionError
LdtpExecutionError
public java.lang.String[] getObjectList()
throws LdtpExecutionError
LdtpExecutionError
public java.lang.String[] getObjectInfo(java.lang.String objName)
throws LdtpExecutionError
objName - Object name
LdtpExecutionError
public java.lang.String getObjectProperty(java.lang.String objName,
java.lang.String property)
throws LdtpExecutionError
objName - Object nameproperty - Property of the children like class, label, label_by, child_index
LdtpExecutionError
public java.lang.String[] getChild(java.lang.String childName)
throws LdtpExecutionError
childName - Child name
LdtpExecutionError
public java.lang.String[] getChild(java.lang.String childName,
java.lang.String role)
throws LdtpExecutionError
childName - Child namerole - object role type
LdtpExecutionError
public java.lang.String[] getChild(java.lang.String childName,
java.lang.String role,
java.lang.String property)
throws LdtpExecutionError
childName - Child namerole - object role typeproperty - property of child
LdtpExecutionError
public java.lang.Integer[] getObjectSize(java.lang.String objName)
throws LdtpExecutionError
objName - Object name
LdtpExecutionError
public java.lang.Integer[] getWindowSize()
throws LdtpExecutionError
LdtpExecutionErrorpublic int reMap()
LdtpExecutionError - exception on failurepublic int waitTime()
LdtpExecutionError - exception on failurepublic int waitTime(int timeout)
timeout - Sleep for timeout seconds
LdtpExecutionError - exception on failurepublic java.lang.String[] getObjectNameAtCoords()
public java.lang.String[] getObjectNameAtCoords(double waitTime)
waitTime - wait for the given time and then try to find the window and object name
public int guiExist()
public int guiExist(java.lang.String objName)
objName - Object name to look
public int waitTillGuiExist()
public int waitTillGuiExist(java.lang.String objName)
objName - Object name to look
public int waitTillGuiExist(java.lang.String objName,
int guiTimeOut)
objName - Object name to lookguiTimeOut - Wait for the given time rather than default 30 seconds
public int waitTillGuiExist(int guiTimeOut)
guiTimeOut - Wait for the given time rather than default 30 seconds
public int waitTillGuiExist(int guiTimeOut,
java.lang.String state)
guiTimeOut - Wait for the given time rather than default 30 secondsstate - Wait for the state
public int waitTillGuiExist(java.lang.String objName,
int guiTimeOut,
java.lang.String state)
objName - Object name to lookguiTimeOut - Wait for the given time rather than default 30 secondsstate - Wait for the state
public int waitTillGuiNotExist()
public int waitTillGuiNotExist(java.lang.String objName)
objName - Object name to look
public int waitTillGuiNotExist(java.lang.String objName,
int guiTimeOut)
objName - Object name to lookguiTimeOut - Wait for the given time rather than default 30 seconds
public int waitTillGuiNotExist(int guiTimeOut)
guiTimeOut - Wait for the given time rather than default 30 seconds
public int waitTillGuiNotExist(int guiTimeOut,
java.lang.String state)
guiTimeOut - Wait for the given time rather than default 30 secondsstate - Wait for the state
public int waitTillGuiNotExist(java.lang.String objName,
int guiTimeOut,
java.lang.String state)
objName - Object name to lookguiTimeOut - Wait for the given time rather than default 30 secondsstate - Wait for the state
public int objectExist(java.lang.String objName)
objName - Object name to look
public int delayCmdExec(int delay)
delay - Delay the command execution
public int launchApp(java.lang.String cmd)
cmd - Executable to launch
LdtpExecutionError - on failure
public int launchApp(java.lang.String cmd,
java.lang.String[] args)
cmd - Executable to launchargs - String array argument to the executable
LdtpExecutionError - on failure
public int launchApp(java.lang.String cmd,
java.lang.String[] args,
int delay)
cmd - Executable to launchargs - String array argument to the executabledelay - Wait given number of seconds after the command executed successfully
LdtpExecutionError - on failure
public int launchApp(java.lang.String cmd,
java.lang.String[] args,
int delay,
int env)
cmd - Executable to launchargs - String array argument to the executabledelay - Wait given number of seconds after the command executed successfullyenv - Gnome accessibility to be set or not
LdtpExecutionError - on failure
public int launchApp(java.lang.String cmd,
java.lang.String[] args,
int delay,
int env,
java.lang.String lang)
cmd - Executable to launchargs - String array argument to the executabledelay - Wait given number of seconds after the command executed successfullyenv - Gnome accessibility to be set or notlang - Locale language to be used
LdtpExecutionError - on failurepublic java.lang.String getLastLog()
public int startProcessMonitor(java.lang.String processName)
throws LdtpExecutionError
processName - Process to be monitored
LdtpExecutionError - on failure
public int stopProcessMonitor(java.lang.String processName,
int interval)
throws LdtpExecutionError
processName - Stop monitoring the process
LdtpExecutionError - on failurepublic java.lang.Double[] getCpuStat(java.lang.String processName)
processName - Get CPU stat of process
public java.lang.Integer[] getMemoryStat(java.lang.String processName)
processName - Get memory stat of process
public int windowUpTime()
throws LdtpExecutionError
LdtpExecutionError - on failure
public int onWindowCreate(java.lang.String callback)
throws LdtpExecutionError
callback - Callback method to be called
LdtpExecutionError - on failure
public int removeCallback()
throws LdtpExecutionError
LdtpExecutionError - on failure
public int registerEvent(java.lang.String eventName)
throws LdtpExecutionError
eventName - Event name to watch for
LdtpExecutionError - on failure
public int deRegisterEvent(java.lang.String eventName)
throws LdtpExecutionError
eventName - Don't watch the event name
LdtpExecutionError - on failure
public int registerKbEvent(java.lang.String keys)
throws LdtpExecutionError
keys - Watch the keys
LdtpExecutionError - on failure
public int registerKbEvent(java.lang.String keys,
int modifiers)
throws LdtpExecutionError
keys - Watch the keysmodifiers - Keyboard modifiers
LdtpExecutionError - on failure
public int deRegisterKbEvent(java.lang.String keys)
throws LdtpExecutionError
keys - Don't watch the keys
LdtpExecutionError - on failure
public int deRegisterKbEvent(java.lang.String keys,
int modifiers)
throws LdtpExecutionError
keys - Don't watch the keysmodifiers - Keyboard modifiers
LdtpExecutionError - on failure
public int maximizeWindow()
throws LdtpExecutionError
LdtpExecutionError - on failure
public int maximizeWindow(java.lang.String windowName)
throws LdtpExecutionError
windowName - Maximize given window name
LdtpExecutionError - on failure
public int minimizeWindow()
throws LdtpExecutionError
LdtpExecutionError - on failure
public int minimizeWindow(java.lang.String windowName)
throws LdtpExecutionError
windowName - Minimize given window name
LdtpExecutionError - on failure
public int closeWindow()
throws LdtpExecutionError
LdtpExecutionError - on failure
public int closeWindow(java.lang.String windowName)
throws LdtpExecutionError
windowName - Close given window name
LdtpExecutionError - on failure
public int unMaximizeWindow()
throws LdtpExecutionError
LdtpExecutionError - on failure
public int unMaximizeWindow(java.lang.String windowName)
throws LdtpExecutionError
windowName - Un-maximize given window name
LdtpExecutionError - on failure
public int unMinimizeWindow()
throws LdtpExecutionError
LdtpExecutionError - on failure
public int unMinimizeWindow(java.lang.String windowName)
throws LdtpExecutionError
windowName - unMinimize given window name
LdtpExecutionError - on failure
public int activateWindow(java.lang.String windowName)
throws LdtpExecutionError
windowName - Activate given window name
LdtpExecutionError - on failure
public java.lang.String[] getAllStates(java.lang.String objName)
throws LdtpExecutionError
LdtpExecutionError - on failure
public int hasState(java.lang.String objName,
java.lang.String state)
throws LdtpExecutionError
objName - Object name inside the windowstate - State of the object to be verified
LdtpExecutionError - on failure
public int hasState(java.lang.String objName,
java.lang.String state,
int guiTimeOut)
throws LdtpExecutionError
objName - Object name inside the windowstate - State of the object to be verifiedguiTimeOut - Wait for the state till timeout
LdtpExecutionError - on failure
public int grabFocus(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window
LdtpExecutionError - on failure
public int click(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window
LdtpExecutionError - on failure
public int press(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window
LdtpExecutionError - on failure
public int check(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window
LdtpExecutionError - on failure
public int unCheck(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window
LdtpExecutionError - on failurepublic int verifyToggled(java.lang.String objName)
objName - Object name inside the window
public int verifyCheck(java.lang.String objName)
objName - Object name inside the window
public int verifyUnCheck(java.lang.String objName)
objName - Object name inside the window
public int stateEnabled(java.lang.String objName)
objName - Object name inside the window
public int verifyPushButton(java.lang.String objName)
objName - Object name inside the window
public int getPanelChildCount(java.lang.String objName)
objName - Object name inside the window
public int selectPanel(java.lang.String objName,
int index)
throws LdtpExecutionError
objName - Object name inside the windowindex - Index in panel
LdtpExecutionError - on failure
public int selectPanelIndex(java.lang.String objName,
int index)
throws LdtpExecutionError
objName - Object name inside the windowindex - Index in panel
LdtpExecutionError - on failure
public int selectPanelName(java.lang.String objName,
java.lang.String name)
throws LdtpExecutionError
objName - Object name inside the windowname - Child name under panel
LdtpExecutionError - on failure
public int selectMenuItem(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window, should be ; separated
LdtpExecutionError - on failurepublic int doesMenuItemExist(java.lang.String objName)
objName - Object name inside the window, should be ; separated
public java.lang.String[] listSubMenus(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window, should be ; separated
LdtpExecutionError - on failure
public int menuCheck(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window, should be ; separated
LdtpExecutionError - on failure
public int menuUnCheck(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window, should be ; separated
LdtpExecutionError - on failurepublic int menuItemEnabled(java.lang.String objName)
objName - Object name inside the window, should be ; separated
public int verifyMenuCheck(java.lang.String objName)
objName - Object name inside the window, should be ; separated
public int verifyMenuUnCheck(java.lang.String objName)
objName - Object name inside the window, should be ; separated
public int invokeMenu(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the window, should be ; separated
LdtpExecutionError - on failure
public int generateKeyEvent(java.lang.String data)
throws LdtpExecutionError
data - Input string
LdtpExecutionError - on failure
public int keyPress(java.lang.String data)
throws LdtpExecutionError
data - Input string
LdtpExecutionError - on failure
public int keyRelease(java.lang.String data)
throws LdtpExecutionError
data - Input string
LdtpExecutionError - on failure
public int enterString(java.lang.String data)
throws LdtpExecutionError
data - Input string
LdtpExecutionError - on failure
public int enterString(java.lang.String objName,
java.lang.String data)
throws LdtpExecutionError
objName - Object name inside the current windowdata - Input string
LdtpExecutionError - on failure
public int setTextValue(java.lang.String objName,
java.lang.String data)
throws LdtpExecutionError
objName - Object name inside the current windowdata - Input string
LdtpExecutionError - on failure
public java.lang.String getTextValue(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public java.lang.String getTextValue(java.lang.String objName,
int startPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position to get the text
LdtpExecutionError - on failure
public java.lang.String getTextValue(java.lang.String objName,
int startPos,
int endPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position to get the textendPos - End position to get the text
LdtpExecutionError - on failure
public int verifyPartialMatch(java.lang.String objName,
java.lang.String data)
objName - Object name inside the current windowdata - Text to be verified
public int verifySetText(java.lang.String objName,
java.lang.String data)
throws LdtpExecutionError
objName - Object name inside the current windowdata - Text to be verified
LdtpExecutionError
public int activateText(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int appendText(java.lang.String objName,
java.lang.String data)
throws LdtpExecutionError
objName - Object name inside the current windowdata - Input string
LdtpExecutionError - on failurepublic int isTextStateEnabled(java.lang.String objName)
objName - Object name inside the current window
public int getCharCount(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int setCursorPosition(java.lang.String objName,
int cursorPos)
throws LdtpExecutionError
objName - Object name inside the current windowcursorPos - New cursor position
LdtpExecutionError - on failurepublic int getCursorPosition(java.lang.String objName)
objName - Object name inside the current window
public int cutText(java.lang.String objName,
int startPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position from where to cut the text
LdtpExecutionError - on failure
public int cutText(java.lang.String objName,
int startPos,
int endPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position from where to cut the textendPos - End position of text to be cut
LdtpExecutionError - on failure
public int copyText(java.lang.String objName,
int startPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position from where to copy the text
LdtpExecutionError - on failure
public int copyText(java.lang.String objName,
int startPos,
int endPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position from where to copy the textendPos - End position to which the text has to be copied
LdtpExecutionError - on failure
public int deleteText(java.lang.String objName,
int startPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position from where to delete the text
LdtpExecutionError - on failure
public int deleteText(java.lang.String objName,
int startPos,
int endPos)
throws LdtpExecutionError
objName - Object name inside the current windowstartPos - Start position from where to delete the textendPos - End position to which the text has to be deleted
LdtpExecutionError - on failure
public int pasteText(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int pasteText(java.lang.String objName,
int cursorPos)
throws LdtpExecutionError
objName - Object name inside the current windowcursorPos - Cursor position in which the text has to be pasted
LdtpExecutionError - on failure
public java.lang.String getStatusBarText(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int unSelectItem(java.lang.String objName,
java.lang.String itemName)
objName - Object name inside the current windowitemName - item name to be unselected
LdtpExecutionError - on failure
public int selectItem(java.lang.String objName,
java.lang.String itemName)
objName - Object name inside the current windowitemName - item name to be selected
LdtpExecutionError - on failure
public int comboSelect(java.lang.String objName,
java.lang.String itemName)
throws LdtpExecutionError
objName - Object name inside the current windowitemName - item name to be selected
LdtpExecutionError - on failure
public int isChildSelected(java.lang.String objName,
java.lang.String itemName)
objName - Object name inside the current windowitemName - item name to be verified
public int verifySelect(java.lang.String objName,
java.lang.String itemName)
objName - Object name inside the current windowitemName - item name to be verified
public int isChildIndexSelected(java.lang.String objName,
int itemIndex)
objName - Object name inside the current windowitemIndex - item index to be verified
public int unSelectIndex(java.lang.String objName,
int itemIndex)
throws LdtpExecutionError
objName - Object name inside the current windowitemIndex - item index to be unselected
LdtpExecutionError - on failure
public int selectIndex(java.lang.String objName,
int itemIndex)
throws LdtpExecutionError
objName - Object name inside the current windowitemIndex - item index to be selected
LdtpExecutionError - on failure
public int comboSelectIndex(java.lang.String objName,
int itemIndex)
throws LdtpExecutionError
objName - Object name inside the current windowitemIndex - item index to be selected
LdtpExecutionError - on failurepublic int selectedItemCount(java.lang.String objName)
objName - Object name inside the current window
public int showList(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int hideList(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failurepublic int verifyDropDown(java.lang.String objName)
objName - Object name inside the current window
public int verifyShowList(java.lang.String objName)
objName - Object name inside the current window
public int verifyHideList(java.lang.String objName)
objName - Object name inside the current window
public java.lang.String[] getAllItem(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failurepublic int selectAll(java.lang.String objName)
objName - Object name inside the current window
LdtpExecutionError - on failurepublic int unSelectAll(java.lang.String objName)
objName - Object name inside the current window
LdtpExecutionError - on failure
public int generateMouseEvent(int x,
int y)
throws LdtpExecutionError
x - X co-ordinatey - Y co-ordinate
LdtpExecutionError - on failure
public int generateMouseEvent(int x,
int y,
java.lang.String eventType)
x - X co-ordinatey - Y co-ordinateeventType - Event type to be generated
LdtpExecutionError - on failure
public int mouseLeftClick(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failurepublic int mouseMove(java.lang.String objName)
objName - Object name inside the current window
LdtpExecutionError - on failurepublic int mouseRightClick(java.lang.String objName)
objName - Object name inside the current window
LdtpExecutionError - on failurepublic int doubleClick(java.lang.String objName)
objName - Object name inside the current window
LdtpExecutionError - on failure
public int simulateMouseMove(int source_x,
int source_y,
int dest_x,
int dest_y)
source_x - Source X co-ordinatesource_y - Source Y co-ordinatedest_x - Destination X co-ordinatedest_y - Destination Y co-ordinate
LdtpExecutionError - on failure
public int simulateMouseMove(int source_x,
int source_y,
int dest_x,
int dest_y,
double delay)
source_x - Source X co-ordinatesource_y - Source Y co-ordinatedest_x - Destination X co-ordinatedest_y - Destination Y co-ordinatedelay - Delay between each pixel move in seconds
LdtpExecutionError - on failure
public int selectTab(java.lang.String objName,
java.lang.String tabName)
throws LdtpExecutionError
objName - Object name inside the current windowtabName - Tab name to be selected
LdtpExecutionError - on failure
public int selectTabIndex(java.lang.String objName,
int tabIndex)
throws LdtpExecutionError
objName - Object name inside the current windowtabIndex - Tab index to be selected
LdtpExecutionError - on failure
public int getTabCount(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public java.lang.String getTabName(java.lang.String objName,
int tabIndex)
throws LdtpExecutionError
objName - Object name inside the current windowtabIndex - Tab index to get
LdtpExecutionError - on failure
public int verifyTabName(java.lang.String objName,
java.lang.String tabName)
objName - Object name inside the current windowtabName - Tab name to be verified
public int getRowCount(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int selectRow(java.lang.String objName,
java.lang.String rowText)
throws LdtpExecutionError
objName - Object name inside the current windowrowText - Row text to be matched
LdtpExecutionError - on failure
public int selectRowPartialMatch(java.lang.String objName,
java.lang.String rowText)
throws LdtpExecutionError
objName - Object name inside the current windowrowText - Row text to be matched
LdtpExecutionError - on failure
public int selectRowIndex(java.lang.String objName,
int rowIndex)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index to be selected
LdtpExecutionError - on failure
public int selectLastRow(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int setCellValue(java.lang.String objName,
int rowIndex,
java.lang.String data)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index in which data has to be setdata - Data to be set
LdtpExecutionError - on failure
public int setCellValue(java.lang.String objName,
int rowIndex,
int column,
java.lang.String data)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index in which data has to be setcolumn - Column in which data has to be setdata - Data to be set
LdtpExecutionError - on failure
public java.lang.String getCellValue(java.lang.String objName,
int rowIndex)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index in which data has to be get
LdtpExecutionError - on failure
public java.lang.String getCellValue(java.lang.String objName,
int rowIndex,
int column)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index in which data has to be getcolumn - Column in which data has to be get
LdtpExecutionError - on failure
public int rightClick(java.lang.String objName,
java.lang.String rowText)
throws LdtpExecutionError
objName - Object name inside the current windowrowText - Row text to be matched
LdtpExecutionError - on failure
public int checkRow(java.lang.String objName,
int rowIndex)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index to be checked
LdtpExecutionError - on failure
public int checkRow(java.lang.String objName,
int rowIndex,
int column)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index to be checkedcolumn - Column index to be checked
LdtpExecutionError - on failure
public int expandTableCell(java.lang.String objName,
int rowIndex)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index to be expanded
LdtpExecutionError - on failure
public int expandTableCell(java.lang.String objName,
int rowIndex,
int column)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index to be expandedcolumn - Column index to be expanded
LdtpExecutionError - on failure
public int unCheckRow(java.lang.String objName,
int rowIndex)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index to be checked
LdtpExecutionError - on failure
public int unCheckRow(java.lang.String objName,
int rowIndex,
int column)
throws LdtpExecutionError
objName - Object name inside the current windowrowIndex - Row index to be checkedcolumn - Column index to be checked
LdtpExecutionError - on failure
public int getTableRowIndex(java.lang.String objName,
java.lang.String rowText)
throws LdtpExecutionError
objName - Object name inside the current windowrowText - Row text to search for
LdtpExecutionError - on failure
public int singleClickRow(java.lang.String objName,
java.lang.String rowText)
throws LdtpExecutionError
objName - Object name inside the current windowrowText - Row text to search for
LdtpExecutionError - on failure
public int doubleClickRow(java.lang.String objName,
java.lang.String rowText)
throws LdtpExecutionError
objName - Object name inside the current windowrowText - Row text to search for
LdtpExecutionError - on failure
public int verifyTableCell(java.lang.String objName,
int rowIndex,
int column,
java.lang.String rowText)
objName - Object name inside the current windowrowIndex - Row index to be verifiedcolumn - Column index to be verifiedrowText - Row text to search for
public int doesRowExist(java.lang.String objName,
java.lang.String rowText)
objName - Object name inside the current windowrowText - Row text to search for
public int doesRowExist(java.lang.String objName,
java.lang.String rowText,
java.lang.Boolean partialMatch)
objName - Object name inside the current windowrowText - Row text to search forpartialMatch - Verify partial match
public int verifyPartialTableCell(java.lang.String objName,
int rowIndex,
int column,
java.lang.String rowText)
objName - Object name inside the current windowrowIndex - Row index to be verifiedcolumn - Column index to be verifiedrowText - Partial row text to search for
public double getValue(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public double getSliderValue(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int setValue(java.lang.String objName,
double value)
throws LdtpExecutionError
objName - Object name inside the current windowvalue - to be set
LdtpExecutionError - on failure
public int verifySetValue(java.lang.String objName,
double rowValue)
objName - Object name inside the current windowrowValue - Row value to be verified
public double getMinValue(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public double getMaxValue(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public double getMax(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public double getMinIncrement(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public double getMaxIncrement(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failurepublic int verifySliderVertical(java.lang.String objName)
objName - Object name inside the current window
public int verifySliderHorizontal(java.lang.String objName)
objName - Object name inside the current window
public int verifyScrollbarVertical(java.lang.String objName)
objName - Object name inside the current window
public int verifyScrollbarHorizontal(java.lang.String objName)
objName - Object name inside the current window
public int scrollUp(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int scrollDown(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int scrollRight(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int scrollLeft(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int setMax(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int setMin(java.lang.String objName)
throws LdtpExecutionError
objName - Object name inside the current window
LdtpExecutionError - on failure
public int increase(java.lang.String objName,
int iterations)
throws LdtpExecutionError
objName - Object name inside the current windowiterations - Repeat the action number of times
LdtpExecutionError - on failure
public int decrease(java.lang.String objName,
int iterations)
throws LdtpExecutionError
objName - Object name inside the current windowiterations - Repeat the action number of times
LdtpExecutionError - on failure
public int oneUp(java.lang.String objName,
int iterations)
throws LdtpExecutionError
objName - Object name inside the current windowiterations - Repeat the action number of times
LdtpExecutionError - on failure
public int oneDown(java.lang.String objName,
int iterations)
throws LdtpExecutionError
objName - Object name inside the current windowiterations - Repeat the action number of times
LdtpExecutionError - on failure
public int oneRight(java.lang.String objName,
int iterations)
throws LdtpExecutionError
objName - Object name inside the current windowiterations - Repeat the action number of times
LdtpExecutionError - on failure
public int oneLeft(java.lang.String objName,
int iterations)
throws LdtpExecutionError
objName - Object name inside the current windowiterations - Repeat the action number of times
LdtpExecutionError - on failure
public java.lang.String imageCapture(int y,
int width,
int height)
throws LdtpExecutionError
y - Y co-ordinate from where to start capturing imagewidth - Width co-ordinate to end capturing imageheight - Height co-ordinate to end capturing image
LdtpExecutionError - on failure
public java.lang.String imageCapture(int width,
int height)
throws LdtpExecutionError
width - Width co-ordinate to end capturing imageheight - Height co-ordinate to end capturing image
LdtpExecutionError - on failure
public java.lang.String imageCapture(int height)
throws LdtpExecutionError
height - Height co-ordinate to end capturing image
LdtpExecutionError - on failure
public java.lang.String imageCapture()
throws LdtpExecutionError
LdtpExecutionError - on failure
public java.lang.String imageCapture(int x,
int y,
int width,
int height)
throws LdtpExecutionError
x - X co-ordinate from where to start capturing imagey - Y co-ordinate from where to start capturing imagewidth - Width co-ordinate to end capturing imageheight - Height co-ordinate to end capturing image
LdtpExecutionError - on failure
public java.lang.String imageCapture(java.lang.String windowName)
throws LdtpExecutionError
windowName - Capture only the window name rather than the complete desktop
LdtpExecutionError - on failure
public java.lang.String imageCapture(java.lang.String windowName,
int x,
int y,
int width,
int height)
throws LdtpExecutionError
windowName - Capture only the window name rather than the complete desktopx - X co-ordinate from where to start capturing imagey - Y co-ordinate from where to start capturing imagewidth - Width co-ordinate to end capturing imageheight - Height co-ordinate to end capturing image
LdtpExecutionError - on failurepublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||