com.cobra.ldtp
Class Ldtp

java.lang.Object
  extended by com.cobra.ldtp.Ldtp

public class Ldtp
extends java.lang.Object

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

Ldtp

public Ldtp(java.lang.String windowName)
Ldtp

Parameters:
windowName - Window to be manipulated

Ldtp

public Ldtp(java.lang.String windowName,
            java.lang.String serverAddr)
Ldtp

Parameters:
windowName - Window to be manipulated
serverAddr - Server address to connect to

Ldtp

public Ldtp(java.lang.String windowName,
            java.lang.String serverAddr,
            java.lang.String serverPort)
Ldtp

Parameters:
windowName - Window to be manipulated
serverAddr - Server address to connect to
serverPort - Server port to connect to

Ldtp

public Ldtp(java.lang.String windowName,
            java.lang.String serverAddr,
            java.lang.String serverPort,
            java.lang.String windowsEnv)
Ldtp

Parameters:
windowName - Window to be manipulated
serverAddr - Server address to connect to
serverPort - Server port to connect to
windowsEnv - Running the test in windows environment ("true" or "false" string value)
Method Detail

setWindowName

public void setWindowName(java.lang.String windowName)
setWindowName Change window name

Parameters:
windowName - Window to be manipulated

getWindowName

public java.lang.String getWindowName()
getWindowName Get currently set window name


getWindowList

public java.lang.String[] getWindowList()
                                 throws LdtpExecutionError
getWindowList Get currently open window list

Returns:
Return the output as String array
Throws:
LdtpExecutionError

getAppList

public java.lang.String[] getAppList()
                              throws LdtpExecutionError
getAppList Get currently open application list

Returns:
Return the output as String array
Throws:
LdtpExecutionError

getObjectList

public java.lang.String[] getObjectList()
                                 throws LdtpExecutionError
getObjectList Get current windows object list

Returns:
Return the output as String array
Throws:
LdtpExecutionError

getObjectInfo

public java.lang.String[] getObjectInfo(java.lang.String objName)
                                 throws LdtpExecutionError
getObjectList Get current object info

Parameters:
objName - Object name
Returns:
Return the properties of the current object as String array
Throws:
LdtpExecutionError

getObjectProperty

public java.lang.String getObjectProperty(java.lang.String objName,
                                          java.lang.String property)
                                   throws LdtpExecutionError
getObjectProperty Get current object property

Parameters:
objName - Object name
property - Property of the children like class, label, label_by, child_index
Returns:
Return the property as String
Throws:
LdtpExecutionError

getChild

public java.lang.String[] getChild(java.lang.String childName)
                            throws LdtpExecutionError
getChild Get children matching child name

Parameters:
childName - Child name
Returns:
Return the children as String array
Throws:
LdtpExecutionError

getChild

public java.lang.String[] getChild(java.lang.String childName,
                                   java.lang.String role)
                            throws LdtpExecutionError
getChild Get children matching child name and role

Parameters:
childName - Child name
role - object role type
Returns:
Return the children as String array
Throws:
LdtpExecutionError

getChild

public java.lang.String[] getChild(java.lang.String childName,
                                   java.lang.String role,
                                   java.lang.String property)
                            throws LdtpExecutionError
getChild Get children matching child name, role, property

Parameters:
childName - Child name
role - object role type
property - property of child
Returns:
Return the children as String array
Throws:
LdtpExecutionError

getObjectSize

public java.lang.Integer[] getObjectSize(java.lang.String objName)
                                  throws LdtpExecutionError
getObjectSize Get object size

Parameters:
objName - Object name
Returns:
Return the size as Integer list
Throws:
LdtpExecutionError

getWindowSize

public java.lang.Integer[] getWindowSize()
                                  throws LdtpExecutionError
getWindowSize Get window size

Returns:
Return the size as Integer list
Throws:
LdtpExecutionError

reMap

public int reMap()
reMap Re-Map current window

Returns:
Return the 1 on success
Throws:
LdtpExecutionError - exception on failure

waitTime

public int waitTime()
waitTime Sleep for 5 seconds

Returns:
Return the 1 on success
Throws:
LdtpExecutionError - exception on failure

waitTime

public int waitTime(int timeout)
waitTime Sleep for given seconds

Parameters:
timeout - Sleep for timeout seconds
Returns:
Return the 1 on success
Throws:
LdtpExecutionError - exception on failure

getObjectNameAtCoords

public java.lang.String[] getObjectNameAtCoords()
getObjectNameAtCoords Get object name at co-ordinates without any delay

Returns:
Return String array of possible window name and object name

getObjectNameAtCoords

public java.lang.String[] getObjectNameAtCoords(double waitTime)
getObjectNameAtCoords Get object name at co-ordinates

Parameters:
waitTime - wait for the given time and then try to find the window and object name
Returns:
Return String array of possible window name and object name

guiExist

public int guiExist()
guiExist Verifies whether the current window exist or not

Returns:
Return 1 on success, 0 on failure

guiExist

public int guiExist(java.lang.String objName)
guiExist Verifies whether the current window and given object exist or not

Parameters:
objName - Object name to look
Returns:
Return 1 on success, 0 on failure

waitTillGuiExist

public int waitTillGuiExist()
waitTillGuiExist Wait for the current window for 30 seconds

Returns:
Return 1 on success, 0 on failure

waitTillGuiExist

public int waitTillGuiExist(java.lang.String objName)
waitTillGuiExist Wait for the current window and object name for 30 seconds

Parameters:
objName - Object name to look
Returns:
Return 1 on success, 0 on failure

waitTillGuiExist

public int waitTillGuiExist(java.lang.String objName,
                            int guiTimeOut)
waitTillGuiExist Wait for the current window and object name for given seconds

Parameters:
objName - Object name to look
guiTimeOut - Wait for the given time rather than default 30 seconds
Returns:
Return 1 on success, 0 on failure

waitTillGuiExist

public int waitTillGuiExist(int guiTimeOut)
waitTillGuiExist Wait for the current window for given seconds

Parameters:
guiTimeOut - Wait for the given time rather than default 30 seconds
Returns:
Return 1 on success, 0 on failure

waitTillGuiExist

public int waitTillGuiExist(int guiTimeOut,
                            java.lang.String state)
waitTillGuiExist Wait for the current window, state for given seconds

Parameters:
guiTimeOut - Wait for the given time rather than default 30 seconds
state - Wait for the state
Returns:
Return 1 on success, 0 on failure

waitTillGuiExist

public int waitTillGuiExist(java.lang.String objName,
                            int guiTimeOut,
                            java.lang.String state)
waitTillGuiExist Wait for the current window, object name, state for given seconds

Parameters:
objName - Object name to look
guiTimeOut - Wait for the given time rather than default 30 seconds
state - Wait for the state
Returns:
Return 1 on success, 0 on failure

waitTillGuiNotExist

public int waitTillGuiNotExist()
waitTillGuiNotExist Wait for the current window to disappear for 30 seconds

Returns:
Return 1 on success, 0 on failure

waitTillGuiNotExist

public int waitTillGuiNotExist(java.lang.String objName)
waitTillGuiNotExist Wait for the current window, object name to disappear for 30 seconds

Parameters:
objName - Object name to look
Returns:
Return 1 on success, 0 on failure

waitTillGuiNotExist

public int waitTillGuiNotExist(java.lang.String objName,
                               int guiTimeOut)
waitTillGuiNotExist Wait for the current window, object name to disappear for given seconds

Parameters:
objName - Object name to look
guiTimeOut - Wait for the given time rather than default 30 seconds
Returns:
Return 1 on success, 0 on failure

waitTillGuiNotExist

public int waitTillGuiNotExist(int guiTimeOut)
waitTillGuiNotExist Wait for the current window to disappear for given seconds

Parameters:
guiTimeOut - Wait for the given time rather than default 30 seconds
Returns:
Return 1 on success, 0 on failure

waitTillGuiNotExist

public int waitTillGuiNotExist(int guiTimeOut,
                               java.lang.String state)
waitTillGuiNotExist Wait for the current window, state to disapper for given seconds

Parameters:
guiTimeOut - Wait for the given time rather than default 30 seconds
state - Wait for the state
Returns:
Return 1 on success, 0 on failure

waitTillGuiNotExist

public 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

Parameters:
objName - Object name to look
guiTimeOut - Wait for the given time rather than default 30 seconds
state - Wait for the state
Returns:
Return 1 on success, 0 on failure

objectExist

public int objectExist(java.lang.String objName)
objectExist Verifies whether the window and object exist

Parameters:
objName - Object name to look
Returns:
Return 1 on success, 0 on failure

delayCmdExec

public int delayCmdExec(int delay)
delayCmdExec Delay each actions by given seconds

Parameters:
delay - Delay the command execution
Returns:
Return 1 on success, 0 on failure

launchApp

public int launchApp(java.lang.String cmd)
launchApp Launch application

Parameters:
cmd - Executable to launch
Returns:
Return pid of the launched process on success
Throws:
LdtpExecutionError - on failure

launchApp

public int launchApp(java.lang.String cmd,
                     java.lang.String[] args)
launchApp Launch application

Parameters:
cmd - Executable to launch
args - String array argument to the executable
Returns:
Return pid of the launched process on success
Throws:
LdtpExecutionError - on failure

launchApp

public int launchApp(java.lang.String cmd,
                     java.lang.String[] args,
                     int delay)
launchApp Launch application

Parameters:
cmd - Executable to launch
args - String array argument to the executable
delay - Wait given number of seconds after the command executed successfully
Returns:
Return pid of the launched process on success
Throws:
LdtpExecutionError - on failure

launchApp

public int launchApp(java.lang.String cmd,
                     java.lang.String[] args,
                     int delay,
                     int env)
launchApp Launch application

Parameters:
cmd - Executable to launch
args - String array argument to the executable
delay - Wait given number of seconds after the command executed successfully
env - Gnome accessibility to be set or not
Returns:
Return pid of the launched process on success
Throws:
LdtpExecutionError - on failure

launchApp

public int launchApp(java.lang.String cmd,
                     java.lang.String[] args,
                     int delay,
                     int env,
                     java.lang.String lang)
launchApp Launch application

Parameters:
cmd - Executable to launch
args - String array argument to the executable
delay - Wait given number of seconds after the command executed successfully
env - Gnome accessibility to be set or not
lang - Locale language to be used
Returns:
Return pid of the launched process on success
Throws:
LdtpExecutionError - on failure

getLastLog

public java.lang.String getLastLog()
getLastLog Gets last log from server

Returns:
Return log from server

startProcessMonitor

public int startProcessMonitor(java.lang.String processName)
                        throws LdtpExecutionError
startProcessMonitor Starts process monitor

Parameters:
processName - Process to be monitored
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

stopProcessMonitor

public int stopProcessMonitor(java.lang.String processName,
                              int interval)
                       throws LdtpExecutionError
stopProcessMonitor Stop process monitor

Parameters:
processName - Stop monitoring the process
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getCpuStat

public java.lang.Double[] getCpuStat(java.lang.String processName)
getCpuStat Get CPU stat

Parameters:
processName - Get CPU stat of process
Returns:
Return Double list of CPU stat on success, empty list on failure

getMemoryStat

public java.lang.Integer[] getMemoryStat(java.lang.String processName)
getMemoryStat Get memory stat

Parameters:
processName - Get memory stat of process
Returns:
Return Integer list of memory stat on success, empty list on failure

windowUpTime

public int windowUpTime()
                 throws LdtpExecutionError
windowUpTime Get uptime of window

Returns:
Return DateTime on success
Throws:
LdtpExecutionError - on failure

onWindowCreate

public int onWindowCreate(java.lang.String callback)
                   throws LdtpExecutionError
onWindowCreate On new window opened callback the method

Parameters:
callback - Callback method to be called
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

removeCallback

public int removeCallback()
                   throws LdtpExecutionError
removeCallback Remove callback method

Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

registerEvent

public int registerEvent(java.lang.String eventName)
                  throws LdtpExecutionError
registerEvent Register event to watch for

Parameters:
eventName - Event name to watch for
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

deRegisterEvent

public int deRegisterEvent(java.lang.String eventName)
                    throws LdtpExecutionError
deRegisterEvent De-Register event to watch for

Parameters:
eventName - Don't watch the event name
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

registerKbEvent

public int registerKbEvent(java.lang.String keys)
                    throws LdtpExecutionError
registerKbEvent register Keyboard event to watch for

Parameters:
keys - Watch the keys
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

registerKbEvent

public int registerKbEvent(java.lang.String keys,
                           int modifiers)
                    throws LdtpExecutionError
registerKbEvent register Keyboard event to watch for

Parameters:
keys - Watch the keys
modifiers - Keyboard modifiers
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

deRegisterKbEvent

public int deRegisterKbEvent(java.lang.String keys)
                      throws LdtpExecutionError
deRegisterKbEvent De-Register Keyboard event to watch for

Parameters:
keys - Don't watch the keys
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

deRegisterKbEvent

public int deRegisterKbEvent(java.lang.String keys,
                             int modifiers)
                      throws LdtpExecutionError
deRegisterKbEvent De-Register Keyboard event to watch for

Parameters:
keys - Don't watch the keys
modifiers - Keyboard modifiers
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

maximizeWindow

public int maximizeWindow()
                   throws LdtpExecutionError
maximizeWindow Maximize all windows that are currently open

Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

maximizeWindow

public int maximizeWindow(java.lang.String windowName)
                   throws LdtpExecutionError
maximizeWindow Maximize given window that is currently open

Parameters:
windowName - Maximize given window name
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

minimizeWindow

public int minimizeWindow()
                   throws LdtpExecutionError
minimizeWindow Minimize all window that are currently open

Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

minimizeWindow

public int minimizeWindow(java.lang.String windowName)
                   throws LdtpExecutionError
minimizeWindow Minimize given window that is currently open

Parameters:
windowName - Minimize given window name
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

closeWindow

public int closeWindow()
                throws LdtpExecutionError
closeWindow Close all window that are currently open

Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

closeWindow

public int closeWindow(java.lang.String windowName)
                throws LdtpExecutionError
closeWindow Close given window that is currently open

Parameters:
windowName - Close given window name
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unMaximizeWindow

public int unMaximizeWindow()
                     throws LdtpExecutionError
unMaximizeWindow Un-maximize all windows

Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unMaximizeWindow

public int unMaximizeWindow(java.lang.String windowName)
                     throws LdtpExecutionError
unMaximizeWindow Un-maximize given window that is currently open

Parameters:
windowName - Un-maximize given window name
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unMinimizeWindow

public int unMinimizeWindow()
                     throws LdtpExecutionError
unMinimizeWindow Un-minize all windows

Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unMinimizeWindow

public int unMinimizeWindow(java.lang.String windowName)
                     throws LdtpExecutionError
unMinimizeWindow Un-minize given window

Parameters:
windowName - unMinimize given window name
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

activateWindow

public int activateWindow(java.lang.String windowName)
                   throws LdtpExecutionError
activateWindow Activate given window that is currently open

Parameters:
windowName - Activate given window name
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getAllStates

public java.lang.String[] getAllStates(java.lang.String objName)
                                throws LdtpExecutionError
getAllStates Get all states of given object

Returns:
Return String array of states on success
Throws:
LdtpExecutionError - on failure

hasState

public int hasState(java.lang.String objName,
                    java.lang.String state)
             throws LdtpExecutionError
hasState Verifies whether the object has given state

Parameters:
objName - Object name inside the window
state - State of the object to be verified
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

hasState

public int hasState(java.lang.String objName,
                    java.lang.String state,
                    int guiTimeOut)
             throws LdtpExecutionError
hasState Verifies whether the object has given state

Parameters:
objName - Object name inside the window
state - State of the object to be verified
guiTimeOut - Wait for the state till timeout
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

grabFocus

public int grabFocus(java.lang.String objName)
              throws LdtpExecutionError
grabFocus Grabs focus of given object name

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

click

public int click(java.lang.String objName)
          throws LdtpExecutionError
click Clicks on the object inside the window

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

press

public int press(java.lang.String objName)
          throws LdtpExecutionError
press Press the object

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

check

public int check(java.lang.String objName)
          throws LdtpExecutionError
check Check marks the check box

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unCheck

public int unCheck(java.lang.String objName)
            throws LdtpExecutionError
unCheck Un-check check box

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

verifyToggled

public int verifyToggled(java.lang.String objName)
verifyToggled Verify whether the toggle button is toggled

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success, 0 on failure

verifyCheck

public int verifyCheck(java.lang.String objName)
verifyCheck Verify whether the check box is checked

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success, 0 on failure

verifyUnCheck

public int verifyUnCheck(java.lang.String objName)
verifyUnCheck Verify whether the check box is un-checked

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success, 0 on failure

stateEnabled

public int stateEnabled(java.lang.String objName)
stateEnabled Verify whether the object state is enabled

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success, 0 on failure

verifyPushButton

public int verifyPushButton(java.lang.String objName)
verifyPushButton Verify whether the given object is push button

Parameters:
objName - Object name inside the window
Returns:
Return 1 on success, 0 on failure

getPanelChildCount

public int getPanelChildCount(java.lang.String objName)
getPanelChildCount Get child count of a panel

Parameters:
objName - Object name inside the window
Returns:
Return child count on success, -1 on failure

selectPanel

public int selectPanel(java.lang.String objName,
                       int index)
                throws LdtpExecutionError
selectPanel Select panel by index

Parameters:
objName - Object name inside the window
index - Index in panel
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectPanelIndex

public int selectPanelIndex(java.lang.String objName,
                            int index)
                     throws LdtpExecutionError
selectPanelIndex Select panel by index

Parameters:
objName - Object name inside the window
index - Index in panel
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectPanelName

public int selectPanelName(java.lang.String objName,
                           java.lang.String name)
                    throws LdtpExecutionError
selectPanelName Select panel by name

Parameters:
objName - Object name inside the window
name - Child name under panel
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectMenuItem

public int selectMenuItem(java.lang.String objName)
                   throws LdtpExecutionError
selectMenuItem Select given menu item

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

doesMenuItemExist

public int doesMenuItemExist(java.lang.String objName)
doesMenuItemExist Verifies whether the given menu item is enabled or not

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success, 0 on failure

listSubMenus

public java.lang.String[] listSubMenus(java.lang.String objName)
                                throws LdtpExecutionError
listSubMenus Lists all the submenu items

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return sub menus as String array on success
Throws:
LdtpExecutionError - on failure

menuCheck

public int menuCheck(java.lang.String objName)
              throws LdtpExecutionError
menuCheck Checks the menuitem

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

menuUnCheck

public int menuUnCheck(java.lang.String objName)
                throws LdtpExecutionError
menuUnCheck Un-checks the menuitem

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

menuItemEnabled

public int menuItemEnabled(java.lang.String objName)
menuItemEnabled Verifies whether the menuitem is enabled

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success, 0 on failure

verifyMenuCheck

public int verifyMenuCheck(java.lang.String objName)
verifyMenuCheck Verifies whether the menuitem is checked

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success, 0 on failure

verifyMenuUnCheck

public int verifyMenuUnCheck(java.lang.String objName)
verifyMenuUnCheck Verifies whether the menuitem is un-checked

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success, 0 on failure

invokeMenu

public int invokeMenu(java.lang.String objName)
               throws LdtpExecutionError
invokeMenu Invokes menu item that are on Linux system tray

Parameters:
objName - Object name inside the window, should be ; separated
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

generateKeyEvent

public int generateKeyEvent(java.lang.String data)
                     throws LdtpExecutionError
generateKeyEvent Generate keyboard event

Parameters:
data - Input string
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

keyPress

public int keyPress(java.lang.String data)
             throws LdtpExecutionError
keyPress Presses keyboard input

Parameters:
data - Input string
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

keyRelease

public int keyRelease(java.lang.String data)
               throws LdtpExecutionError
keyRelease Releases keyboard input

Parameters:
data - Input string
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

enterString

public int enterString(java.lang.String data)
                throws LdtpExecutionError
enterString Generates keyboard input on the current focused window

Parameters:
data - Input string
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

enterString

public int enterString(java.lang.String objName,
                       java.lang.String data)
                throws LdtpExecutionError
enterString Generates keyboard input

Parameters:
objName - Object name inside the current window
data - Input string
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

setTextValue

public int setTextValue(java.lang.String objName,
                        java.lang.String data)
                 throws LdtpExecutionError
setTextValue Sets text value

Parameters:
objName - Object name inside the current window
data - Input string
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getTextValue

public java.lang.String getTextValue(java.lang.String objName)
                              throws LdtpExecutionError
getTextValue Gets text value

Parameters:
objName - Object name inside the current window
Returns:
Return data as String on success
Throws:
LdtpExecutionError - on failure

getTextValue

public java.lang.String getTextValue(java.lang.String objName,
                                     int startPos)
                              throws LdtpExecutionError
getTextValue Gets text value

Parameters:
objName - Object name inside the current window
startPos - Start position to get the text
Returns:
Return data as String on success
Throws:
LdtpExecutionError - on failure

getTextValue

public java.lang.String getTextValue(java.lang.String objName,
                                     int startPos,
                                     int endPos)
                              throws LdtpExecutionError
getTextValue Gets text value

Parameters:
objName - Object name inside the current window
startPos - Start position to get the text
endPos - End position to get the text
Returns:
Return data as String on success
Throws:
LdtpExecutionError - on failure

verifyPartialMatch

public int verifyPartialMatch(java.lang.String objName,
                              java.lang.String data)
verifyPartialMatch Verify text with partial string

Parameters:
objName - Object name inside the current window
data - Text to be verified
Returns:
Return 1 on success, 0 on failure

verifySetText

public int verifySetText(java.lang.String objName,
                         java.lang.String data)
                  throws LdtpExecutionError
verifySetText Verifies complete text is available in the text field

Parameters:
objName - Object name inside the current window
data - Text to be verified
Returns:
Return 1 on success, 0 on failure
Throws:
LdtpExecutionError

activateText

public int activateText(java.lang.String objName)
                 throws LdtpExecutionError
activateText Activates text area for focus

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

appendText

public int appendText(java.lang.String objName,
                      java.lang.String data)
               throws LdtpExecutionError
appendText Appends given text to existing text

Parameters:
objName - Object name inside the current window
data - Input string
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

isTextStateEnabled

public int isTextStateEnabled(java.lang.String objName)
isTextStateEnabled Verifies whether text field is enabled or not

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

getCharCount

public int getCharCount(java.lang.String objName)
                 throws LdtpExecutionError
getCharCount Get character count of a text field

Parameters:
objName - Object name inside the current window
Returns:
Return character count as Integer on success
Throws:
LdtpExecutionError - on failure

setCursorPosition

public int setCursorPosition(java.lang.String objName,
                             int cursorPos)
                      throws LdtpExecutionError
setCursorPosition Moves the cursor position

Parameters:
objName - Object name inside the current window
cursorPos - New cursor position
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getCursorPosition

public int getCursorPosition(java.lang.String objName)
getCursorPosition Gets the current cursor position

Parameters:
objName - Object name inside the current window
Returns:
Return cursor position as Integer value on success, -1 on failure

cutText

public int cutText(java.lang.String objName,
                   int startPos)
            throws LdtpExecutionError
cutText Cut the text and copy to clipboard

Parameters:
objName - Object name inside the current window
startPos - Start position from where to cut the text
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

cutText

public int cutText(java.lang.String objName,
                   int startPos,
                   int endPos)
            throws LdtpExecutionError
cutText Cut the text and copy to clipboard

Parameters:
objName - Object name inside the current window
startPos - Start position from where to cut the text
endPos - End position of text to be cut
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

copyText

public int copyText(java.lang.String objName,
                    int startPos)
             throws LdtpExecutionError
copyText Copy the text to clipboard

Parameters:
objName - Object name inside the current window
startPos - Start position from where to copy the text
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

copyText

public int copyText(java.lang.String objName,
                    int startPos,
                    int endPos)
             throws LdtpExecutionError
copyText Copy the text to clipboard

Parameters:
objName - Object name inside the current window
startPos - Start position from where to copy the text
endPos - End position to which the text has to be copied
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

deleteText

public int deleteText(java.lang.String objName,
                      int startPos)
               throws LdtpExecutionError
deleteText Delete the text

Parameters:
objName - Object name inside the current window
startPos - Start position from where to delete the text
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

deleteText

public int deleteText(java.lang.String objName,
                      int startPos,
                      int endPos)
               throws LdtpExecutionError
deleteText Delete the text

Parameters:
objName - Object name inside the current window
startPos - Start position from where to delete the text
endPos - End position to which the text has to be deleted
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

pasteText

public int pasteText(java.lang.String objName)
              throws LdtpExecutionError
pasteText Paste the text from clipboard

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

pasteText

public int pasteText(java.lang.String objName,
                     int cursorPos)
              throws LdtpExecutionError
pasteText Paste the text from clipboard

Parameters:
objName - Object name inside the current window
cursorPos - Cursor position in which the text has to be pasted
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getStatusBarText

public java.lang.String getStatusBarText(java.lang.String objName)
                                  throws LdtpExecutionError
pasteText Paste the text from clipboard

Parameters:
objName - Object name inside the current window
Returns:
Return status bar text as String on success
Throws:
LdtpExecutionError - on failure

unSelectItem

public int unSelectItem(java.lang.String objName,
                        java.lang.String itemName)
unSelectItem Unselect item in combo box

Parameters:
objName - Object name inside the current window
itemName - item name to be unselected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectItem

public int selectItem(java.lang.String objName,
                      java.lang.String itemName)
selectItem Select item in combo box

Parameters:
objName - Object name inside the current window
itemName - item name to be selected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

comboSelect

public int comboSelect(java.lang.String objName,
                       java.lang.String itemName)
                throws LdtpExecutionError
comboSelect Select item in combo box

Parameters:
objName - Object name inside the current window
itemName - item name to be selected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

isChildSelected

public int isChildSelected(java.lang.String objName,
                           java.lang.String itemName)
isChildSelected Is child selected in combobox

Parameters:
objName - Object name inside the current window
itemName - item name to be verified
Returns:
Return 1 on success, 0 on failure

verifySelect

public int verifySelect(java.lang.String objName,
                        java.lang.String itemName)
verifySelect Verify text is selected in combobox

Parameters:
objName - Object name inside the current window
itemName - item name to be verified
Returns:
Return 1 on success, 0 on failure

isChildIndexSelected

public int isChildIndexSelected(java.lang.String objName,
                                int itemIndex)
isChildIndexSelected Is child index selected in combobox

Parameters:
objName - Object name inside the current window
itemIndex - item index to be verified
Returns:
Return 1 on success, 0 on failure

unSelectIndex

public int unSelectIndex(java.lang.String objName,
                         int itemIndex)
                  throws LdtpExecutionError
unSelectIndex Unselect given index from the combo box selection list

Parameters:
objName - Object name inside the current window
itemIndex - item index to be unselected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectIndex

public int selectIndex(java.lang.String objName,
                       int itemIndex)
                throws LdtpExecutionError
selectIndex Select given index in the combo box

Parameters:
objName - Object name inside the current window
itemIndex - item index to be selected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

comboSelectIndex

public int comboSelectIndex(java.lang.String objName,
                            int itemIndex)
                     throws LdtpExecutionError
comboSelectIndex Select given index in the combo box

Parameters:
objName - Object name inside the current window
itemIndex - item index to be selected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectedItemCount

public int selectedItemCount(java.lang.String objName)
selectedItemCount Get number of items selected in combo box

Parameters:
objName - Object name inside the current window
Returns:
Return number of items selected on success, -1 on failure

showList

public int showList(java.lang.String objName)
             throws LdtpExecutionError
showList Show combo box entries

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

hideList

public int hideList(java.lang.String objName)
             throws LdtpExecutionError
hideList Hide combo box entries

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

verifyDropDown

public int verifyDropDown(java.lang.String objName)
verifyDropDown Verify drop down is shown

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

verifyShowList

public int verifyShowList(java.lang.String objName)
verifyShowList Verify combo box list is displayed

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

verifyHideList

public int verifyHideList(java.lang.String objName)
verifyHideList Verify combo box list is closed

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

getAllItem

public java.lang.String[] getAllItem(java.lang.String objName)
                              throws LdtpExecutionError
getAllItem Gets all item from combo box

Parameters:
objName - Object name inside the current window
Returns:
Return String array on success
Throws:
LdtpExecutionError - on failure

selectAll

public int selectAll(java.lang.String objName)
selectAll Select all the item in combo box

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unSelectAll

public int unSelectAll(java.lang.String objName)
unSelectAll Un-select all the item in combo box

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

generateMouseEvent

public int generateMouseEvent(int x,
                              int y)
                       throws LdtpExecutionError
generateMouseEvent Generate mouse event

Parameters:
x - X co-ordinate
y - Y co-ordinate
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

generateMouseEvent

public int generateMouseEvent(int x,
                              int y,
                              java.lang.String eventType)
generateMouseEvent Generate mouse event

Parameters:
x - X co-ordinate
y - Y co-ordinate
eventType - Event type to be generated
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

mouseLeftClick

public int mouseLeftClick(java.lang.String objName)
                   throws LdtpExecutionError
mouseLeftClick Generate mouse left click on the object

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

mouseMove

public int mouseMove(java.lang.String objName)
mouseMove Move mouse to the object

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

mouseRightClick

public int mouseRightClick(java.lang.String objName)
mouseRightClick Generate mouse right click on the object

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

doubleClick

public int doubleClick(java.lang.String objName)
doubleClick Generate mouse double click on the object

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

simulateMouseMove

public int simulateMouseMove(int source_x,
                             int source_y,
                             int dest_x,
                             int dest_y)
simulateMouseMove Simulate mouse move from source to destination

Parameters:
source_x - Source X co-ordinate
source_y - Source Y co-ordinate
dest_x - Destination X co-ordinate
dest_y - Destination Y co-ordinate
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

simulateMouseMove

public int simulateMouseMove(int source_x,
                             int source_y,
                             int dest_x,
                             int dest_y,
                             double delay)
simulateMouseMove Simulate mouse move from source to destination

Parameters:
source_x - Source X co-ordinate
source_y - Source Y co-ordinate
dest_x - Destination X co-ordinate
dest_y - Destination Y co-ordinate
delay - Delay between each pixel move in seconds
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectTab

public int selectTab(java.lang.String objName,
                     java.lang.String tabName)
              throws LdtpExecutionError
selectTab Select tab based on the given name

Parameters:
objName - Object name inside the current window
tabName - Tab name to be selected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectTabIndex

public int selectTabIndex(java.lang.String objName,
                          int tabIndex)
                   throws LdtpExecutionError
selectTabIndex Select tab based on the given index

Parameters:
objName - Object name inside the current window
tabIndex - Tab index to be selected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getTabCount

public int getTabCount(java.lang.String objName)
                throws LdtpExecutionError
getTabCount Get number of tabs currently opened

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getTabName

public java.lang.String getTabName(java.lang.String objName,
                                   int tabIndex)
                            throws LdtpExecutionError
getTabName Get tab name based on given index

Parameters:
objName - Object name inside the current window
tabIndex - Tab index to get
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

verifyTabName

public int verifyTabName(java.lang.String objName,
                         java.lang.String tabName)
verifyTabName Verify tab name is correct

Parameters:
objName - Object name inside the current window
tabName - Tab name to be verified
Returns:
Return 1 on success, 0 on failure

getRowCount

public int getRowCount(java.lang.String objName)
                throws LdtpExecutionError
getRowCount Get table cell row count

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectRow

public int selectRow(java.lang.String objName,
                     java.lang.String rowText)
              throws LdtpExecutionError
selectRow Select table cell with row text matching

Parameters:
objName - Object name inside the current window
rowText - Row text to be matched
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectRowPartialMatch

public int selectRowPartialMatch(java.lang.String objName,
                                 java.lang.String rowText)
                          throws LdtpExecutionError
selectRowPartialMatch Select table cell with partial row text matching

Parameters:
objName - Object name inside the current window
rowText - Row text to be matched
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectRowIndex

public int selectRowIndex(java.lang.String objName,
                          int rowIndex)
                   throws LdtpExecutionError
selectRowIndex Select table cell based on index

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be selected
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

selectLastRow

public int selectLastRow(java.lang.String objName)
                  throws LdtpExecutionError
selectLastRow Select last table cell in the table

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

setCellValue

public int setCellValue(java.lang.String objName,
                        int rowIndex,
                        java.lang.String data)
                 throws LdtpExecutionError
setCellValue Set cell value with the given data on row index

Parameters:
objName - Object name inside the current window
rowIndex - Row index in which data has to be set
data - Data to be set
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

setCellValue

public int setCellValue(java.lang.String objName,
                        int rowIndex,
                        int column,
                        java.lang.String data)
                 throws LdtpExecutionError
setCellValue Set cell value with the given data on row index and column

Parameters:
objName - Object name inside the current window
rowIndex - Row index in which data has to be set
column - Column in which data has to be set
data - Data to be set
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getCellValue

public java.lang.String getCellValue(java.lang.String objName,
                                     int rowIndex)
                              throws LdtpExecutionError
getCellValue Gets cell value from row index and column 0

Parameters:
objName - Object name inside the current window
rowIndex - Row index in which data has to be get
Returns:
Return data from cell as String on success
Throws:
LdtpExecutionError - on failure

getCellValue

public java.lang.String getCellValue(java.lang.String objName,
                                     int rowIndex,
                                     int column)
                              throws LdtpExecutionError
getCellValue Gets cell value from row index and column

Parameters:
objName - Object name inside the current window
rowIndex - Row index in which data has to be get
column - Column in which data has to be get
Returns:
Return data from cell as String on success
Throws:
LdtpExecutionError - on failure

rightClick

public int rightClick(java.lang.String objName,
                      java.lang.String rowText)
               throws LdtpExecutionError
rightClick Right click on table cell with matching row text

Parameters:
objName - Object name inside the current window
rowText - Row text to be matched
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

checkRow

public int checkRow(java.lang.String objName,
                    int rowIndex)
             throws LdtpExecutionError
checkRow Checkbox the table cell based on row index and column 0

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be checked
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

checkRow

public int checkRow(java.lang.String objName,
                    int rowIndex,
                    int column)
             throws LdtpExecutionError
checkRow Checkbox the table cell based on row index

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be checked
column - Column index to be checked
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

expandTableCell

public int expandTableCell(java.lang.String objName,
                           int rowIndex)
                    throws LdtpExecutionError
expandTableCell Expand table cell based on row index and column 0

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be expanded
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

expandTableCell

public int expandTableCell(java.lang.String objName,
                           int rowIndex,
                           int column)
                    throws LdtpExecutionError
expandTableCell Expand table cell based on row index and column

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be expanded
column - Column index to be expanded
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unCheckRow

public int unCheckRow(java.lang.String objName,
                      int rowIndex)
               throws LdtpExecutionError
unCheckRow Un-Checkbox the table cell based on row index and column 0

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be checked
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

unCheckRow

public int unCheckRow(java.lang.String objName,
                      int rowIndex,
                      int column)
               throws LdtpExecutionError
unCheckRow Un-Checkbox the table cell based on row index and column

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be checked
column - Column index to be checked
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

getTableRowIndex

public int getTableRowIndex(java.lang.String objName,
                            java.lang.String rowText)
                     throws LdtpExecutionError
getTableRowIndex Get table row index based on row text

Parameters:
objName - Object name inside the current window
rowText - Row text to search for
Returns:
Return row index as Integer on success
Throws:
LdtpExecutionError - on failure

singleClickRow

public int singleClickRow(java.lang.String objName,
                          java.lang.String rowText)
                   throws LdtpExecutionError
singleClickRow Single click on table cell row based on row text

Parameters:
objName - Object name inside the current window
rowText - Row text to search for
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

doubleClickRow

public int doubleClickRow(java.lang.String objName,
                          java.lang.String rowText)
                   throws LdtpExecutionError
doubleClickRow Double click on table cell row based on row text

Parameters:
objName - Object name inside the current window
rowText - Row text to search for
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

verifyTableCell

public int verifyTableCell(java.lang.String objName,
                           int rowIndex,
                           int column,
                           java.lang.String rowText)
verifyTableCell Verify table cell text

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be verified
column - Column index to be verified
rowText - Row text to search for
Returns:
Return 1 on success, 0 on failure

doesRowExist

public int doesRowExist(java.lang.String objName,
                        java.lang.String rowText)
doesRowExist Check whether a row exist with the given text

Parameters:
objName - Object name inside the current window
rowText - Row text to search for
Returns:
Return 1 on success, 0 on failure

doesRowExist

public 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

Parameters:
objName - Object name inside the current window
rowText - Row text to search for
partialMatch - Verify partial match
Returns:
Return 1 on success, 0 on failure

verifyPartialTableCell

public int verifyPartialTableCell(java.lang.String objName,
                                  int rowIndex,
                                  int column,
                                  java.lang.String rowText)
verifyPartialTableCell Verify table cell with partial text

Parameters:
objName - Object name inside the current window
rowIndex - Row index to be verified
column - Column index to be verified
rowText - Partial row text to search for
Returns:
Return 1 on success, 0 on failure

getValue

public double getValue(java.lang.String objName)
                throws LdtpExecutionError
getValue Get value from spin button

Parameters:
objName - Object name inside the current window
Returns:
Return Double value on success
Throws:
LdtpExecutionError - on failure

getSliderValue

public double getSliderValue(java.lang.String objName)
                      throws LdtpExecutionError
getSliderValue Get value from slider

Parameters:
objName - Object name inside the current window
Returns:
Return Double value on success
Throws:
LdtpExecutionError - on failure

setValue

public int setValue(java.lang.String objName,
                    double value)
             throws LdtpExecutionError
setValue Set value with given double value

Parameters:
objName - Object name inside the current window
value - to be set
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

verifySetValue

public int verifySetValue(java.lang.String objName,
                          double rowValue)
verifySetValue Verify whether the value set is correct

Parameters:
objName - Object name inside the current window
rowValue - Row value to be verified
Returns:
Return 1 on success, 0 on failure

getMinValue

public double getMinValue(java.lang.String objName)
                   throws LdtpExecutionError
getMinValue Get minimum slider value

Parameters:
objName - Object name inside the current window
Returns:
Return minimum Double value on success
Throws:
LdtpExecutionError - on failure

getMaxValue

public double getMaxValue(java.lang.String objName)
                   throws LdtpExecutionError
getMaxValue Get maximum slider value

Parameters:
objName - Object name inside the current window
Returns:
Return maximum Double value on success
Throws:
LdtpExecutionError - on failure

getMax

public double getMax(java.lang.String objName)
              throws LdtpExecutionError
getMax Get maximum spin button value

Parameters:
objName - Object name inside the current window
Returns:
Return maximum Double value on success
Throws:
LdtpExecutionError - on failure

getMinIncrement

public double getMinIncrement(java.lang.String objName)
                       throws LdtpExecutionError
getMinIncrement Get minimum increment value

Parameters:
objName - Object name inside the current window
Returns:
Return minimum increment Double value on success
Throws:
LdtpExecutionError - on failure

getMaxIncrement

public double getMaxIncrement(java.lang.String objName)
                       throws LdtpExecutionError
getMaxIncrement Get maximum increment value

Parameters:
objName - Object name inside the current window
Returns:
Return maximum increment Double value on success
Throws:
LdtpExecutionError - on failure

verifySliderVertical

public int verifySliderVertical(java.lang.String objName)
verifySliderVertical Verify slider is vertical

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

verifySliderHorizontal

public int verifySliderHorizontal(java.lang.String objName)
verifySliderHorizontal Verify slider is horizontal

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

verifyScrollbarVertical

public int verifyScrollbarVertical(java.lang.String objName)
verifyScrollbarVertical Verify scrollbar is vertical

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

verifyScrollbarHorizontal

public int verifyScrollbarHorizontal(java.lang.String objName)
verifyScrollbarHorizontal Verify scrollbar is horizontal

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success, 0 on failure

scrollUp

public int scrollUp(java.lang.String objName)
             throws LdtpExecutionError
scrollUp Scroll up once

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

scrollDown

public int scrollDown(java.lang.String objName)
               throws LdtpExecutionError
scrollDown Scroll down once

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

scrollRight

public int scrollRight(java.lang.String objName)
                throws LdtpExecutionError
scrollRight Scroll right once

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

scrollLeft

public int scrollLeft(java.lang.String objName)
               throws LdtpExecutionError
scrollLeft Scroll left once

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

setMax

public int setMax(java.lang.String objName)
           throws LdtpExecutionError
setMax Set maximum value in spin button

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

setMin

public int setMin(java.lang.String objName)
           throws LdtpExecutionError
setMin Set minimum value in spin button

Parameters:
objName - Object name inside the current window
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

increase

public int increase(java.lang.String objName,
                    int iterations)
             throws LdtpExecutionError
increase Increase slider value with given iterations

Parameters:
objName - Object name inside the current window
iterations - Repeat the action number of times
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

decrease

public int decrease(java.lang.String objName,
                    int iterations)
             throws LdtpExecutionError
decrease Decrease slider value with given iterations

Parameters:
objName - Object name inside the current window
iterations - Repeat the action number of times
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

oneUp

public int oneUp(java.lang.String objName,
                 int iterations)
          throws LdtpExecutionError
oneUp Up scrollbar with given iterations

Parameters:
objName - Object name inside the current window
iterations - Repeat the action number of times
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

oneDown

public int oneDown(java.lang.String objName,
                   int iterations)
            throws LdtpExecutionError
oneDown Down scrollbar with given iterations

Parameters:
objName - Object name inside the current window
iterations - Repeat the action number of times
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

oneRight

public int oneRight(java.lang.String objName,
                    int iterations)
             throws LdtpExecutionError
oneRight Right scrollbar with given iterations

Parameters:
objName - Object name inside the current window
iterations - Repeat the action number of times
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

oneLeft

public int oneLeft(java.lang.String objName,
                   int iterations)
            throws LdtpExecutionError
oneLeft Left scrollbar with given iterations

Parameters:
objName - Object name inside the current window
iterations - Repeat the action number of times
Returns:
Return 1 on success
Throws:
LdtpExecutionError - on failure

imageCapture

public java.lang.String imageCapture(int y,
                                     int width,
                                     int height)
                              throws LdtpExecutionError
imageCapture Capture screenshot

Parameters:
y - Y co-ordinate from where to start capturing image
width - Width co-ordinate to end capturing image
height - Height co-ordinate to end capturing image
Returns:
Return filename where the captured image is stored on success
Throws:
LdtpExecutionError - on failure

imageCapture

public java.lang.String imageCapture(int width,
                                     int height)
                              throws LdtpExecutionError
imageCapture Capture screenshot

Parameters:
width - Width co-ordinate to end capturing image
height - Height co-ordinate to end capturing image
Returns:
Return filename where the captured image is stored on success
Throws:
LdtpExecutionError - on failure

imageCapture

public java.lang.String imageCapture(int height)
                              throws LdtpExecutionError
imageCapture Capture screenshot

Parameters:
height - Height co-ordinate to end capturing image
Returns:
Return filename where the captured image is stored on success
Throws:
LdtpExecutionError - on failure

imageCapture

public java.lang.String imageCapture()
                              throws LdtpExecutionError
imageCapture Capture screenshot

Returns:
Return filename where the captured image is stored on success
Throws:
LdtpExecutionError - on failure

imageCapture

public java.lang.String imageCapture(int x,
                                     int y,
                                     int width,
                                     int height)
                              throws LdtpExecutionError
imageCapture Capture screenshot

Parameters:
x - X co-ordinate from where to start capturing image
y - Y co-ordinate from where to start capturing image
width - Width co-ordinate to end capturing image
height - Height co-ordinate to end capturing image
Returns:
Return filename where the captured image is stored on success
Throws:
LdtpExecutionError - on failure

imageCapture

public java.lang.String imageCapture(java.lang.String windowName)
                              throws LdtpExecutionError
imageCapture Capture screenshot

Parameters:
windowName - Capture only the window name rather than the complete desktop
Returns:
Return filename where the captured image is stored on success
Throws:
LdtpExecutionError - on failure

imageCapture

public java.lang.String imageCapture(java.lang.String windowName,
                                     int x,
                                     int y,
                                     int width,
                                     int height)
                              throws LdtpExecutionError
imageCapture Capture screenshot

Parameters:
windowName - Capture only the window name rather than the complete desktop
x - X co-ordinate from where to start capturing image
y - Y co-ordinate from where to start capturing image
width - Width co-ordinate to end capturing image
height - Height co-ordinate to end capturing image
Returns:
Return filename where the captured image is stored on success
Throws:
LdtpExecutionError - on failure

main

public static void main(java.lang.String[] args)