Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Feb 6, 2015
  1. @yingjunli

    Expand gettextvalue()

    yingjunli authored
Commits on Feb 2, 2015
  1. @yingjunli
Commits on Oct 30, 2014
  1. - code changes based on comments from nagappanal

    RamischR authored
Commits on Oct 22, 2014
  1. -handle exception during call of "windowList.IndexOf"

    RamischR authored
    -handling of empty string copied
Commits on Mar 18, 2014
  1. @nagappan

    Implemented InternalWaitTillChildControlTypeExist

    nagappan authored
    Wait for child inside the object with given type
    getcombovalue('dlgVirtualNetworkEditor', 'cboBridgedto')
    
    QA Notes:
    Testing Done: Yes
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  2. @nagappan

    Added stack trace information

    nagappan authored
    Added stack trace information when LDTP_DEBUG_LEVEL set to 3
    
    QA Notes:
    Testing Done: Yes
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  3. @nagappan

    InvokePatter doesn't work all the time, fixed it

    nagappan authored
    InvokePatter doesn't work all the time, fixed it with InternalClick
    
    QA Notes:
    Testing Done: Yes
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Feb 4, 2014
  1. @nagappan
Commits on Dec 14, 2013
  1. @nagappan

    Merge pull request #6 from harig/regex-specials-windownames

    nagappan authored
    Fix failure to match a window-name having parentheses
  2. @harig

    Fix exception getting objectlist from window name having parentheses

    harig authored
    The windowname is used in a regular expression, so parens and other
    regex special characters need to be escaped/replaced.
    
    e.g. u'frmfavicon.ico (16\xd716) - Foo'
Commits on Dec 11, 2013
  1. @nagappan

    Merge pull request #4 from rrzaripov/menukeybranch

    nagappan authored
    Menu key support
Commits on Dec 10, 2013
  1. @rrzaripov

    Menu key support

    rrzaripov authored
Commits on Nov 13, 2013
  1. @nagappan

    Update 4.0 version

    nagappan authored
    Update 4.0 version
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  2. @nagappan
  3. @nagappan

    Updated 4.0 version

    nagappan authored
    Updated 4.0 version
    Copyright year
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Oct 29, 2013
  1. @nagappan

    Merge pull request #3 from nagappan/master

    nagappan authored
    Latest update
Commits on Oct 18, 2013
  1. @nagappan

    Fix for python 3.x

    nagappan authored
    Fix for python 3.x
    
    QA Notes:
    Testing Done: Verified with Python 3.3.2 and 2.7
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Oct 5, 2013
  1. @nagappan

    Fix selectrow on Windows

    nagappan authored
    Fix selectrow on Windows for compatibility with Linux/Mac as reported by user
    http://ldtp.myfastforum.org/viewtopic.php?p=248#248
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Sep 25, 2013
  1. @nagappan

    Implemented doubleclickrowindex

    nagappan authored
    Implemented doubleclickrowindex
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Sep 20, 2013
  1. @nagappan

    Added comboselectindex for Linux/Mac compatibilty

    nagappan authored
    Added comboselectindex for Linux/Mac compatibilty
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Sep 19, 2013
  1. @nagappan

    Changed assembly version

    nagappan authored
    Changed assembly version to 3.5
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Sep 9, 2013
  1. @nagappan

    Add .config file to allow running in 4.0 only machines out of the box

    nagappan authored
    Add .config file to allow running in 4.0 only machines out of the box
    https://uiautomationverify.codeplex.com/workitem/20076
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  2. @nagappan

    Handle exception in destructor

    nagappan authored
    Handle exception in destructor
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Sep 8, 2013
  1. @nagappan
  2. @nagappan

    Merge pull request #8 from ldtp/master

    nagappan authored
    Latest update
Commits on Sep 6, 2013
  1. @nagappan

    Select child row based on tree item, rather than tree

    nagappan authored
    Select child row based on tree item, rather than tree
    
    Before fix:
    
    Always need to select with tree / table / list type, rather than tree item / list item / data item
    >>> selectrow('*Work*tmp*', 'Namespace Tree Control', 'Test')
    1
    >>> selectrow('*Work*tmp*', 'Cobra_Folder_Selection_Test_2', 'Test')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\__init__.py", line 390, in selectrow
        return _remote_selectrow(window_name, object_name, row_text, False)
      File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 66, in __call__
        return self.__send(self.__name, args)
      File "C:\Python27\lib\xmlrpclib.py", line 1575, in __request
        verbose=self.__verbose
      File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 184, in request
        raise LdtpExecutionError(e.faultString.encode('utf-8'))
    ldtp.client_exception.LdtpExecutionError: Unable to find Object: Cobra_Folder_Selection_Test_2
    
    After fix:
    
    >>> selectrow('*Work*tmp*', 'Cobra_Folder_Selection_Test_2', 'Test')
    1
    >>> selectrow('*Work*tmp*', 'Cobra_Folder_Selection_Test_1', 'Test')
    1
    >>>
    
    Credit: "Jia Liu" <jia.jl.liu@oracle.com> for reporting this issue
    
    QA Notes:
    Testing Done: Windows folder
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Aug 29, 2013
  1. @nagappan

    Cobra looses all objects after steps specified inside

    nagappan authored
    Handle System.UnauthorizedAccessException
    
    Issue reported by Baza
    
    import ldtp
    
    def open_new_tab():
        ldtp.activatewindow(FF_TITLE)
    
        ldtp.generatekeyevent('<ctrl>t')
    
        ldtp.wait(5)
    
    def close():
        ldtp.activatewindow(FF_TITLE)
    
        ldtp.generatekeyevent('<alt><f4>')
        ldtp.waittillguinotexist(FF_TITLE, guiTimeOut=20)
    
    FF_TITLE = '*Mozilla Firefox*'
    
    ldtp.launchapp(r'C:\Program Files (x86)\Mozilla Firefox\firefox.exe')
    ldtp.wait(5)
    open_new_tab()
    ldtp.wait(5)
    
    print ldtp.getwindowlist()
    print ldtp.guiexist(FF_TITLE)
    
    close()
    
    print "-----------"
    print ldtp.getwindowlist()
    print ldtp.guiexist(FF_TITLE)
    
    QA Notes:
    Testing Done: Verified with the above test
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Aug 26, 2013
  1. @nagappan

    Fix callback to be registered just once

    nagappan authored
    Thanks to Rob for reporting this issue
    
    from ldtp import *
    
    import threading
    callbackRunning = threading.Event()
    callbackRunning.clear()
    callbackState = threading.Event()
    callbackState.clear()
    
    def cb():
        callbackState.set()
        print 'cb'
        waittillguiexist('Windows Help and Support')
        click('Windows Help and Support', 'btnClose')
        callbackState.clear()
        callbackRunning.set()
        print 'callbackend'
    
    onwindowcreate('Windows Help and Support', cb)
    
    activatewindow('Calculator'); generatekeyevent('<F1>')
    wait(1)
    
    if callbackState.isSet():
        print 'Waiting for callback to complete'
        callbackRunning.wait()
        print 'callbackset'
    
    QA Notes:
    Testing Done: http://ldtp.myfastforum.org/viewtopic.php?p=202#202
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Jul 26, 2013
  1. @nagappan

    Fixed optional arguments

    nagappan authored
    Fixed optional arguments
    Reported by: Harish Vijayaraghavan <harishvraghav@gmail.com>
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  2. @nagappan

    Fixed optional arguments

    nagappan authored
    Fixed optional arguments
    Reported by: Harish Vijayaraghavan <harishvraghav@gmail.com>
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  3. @nagappan

    Fix width and height with -1 value

    nagappan authored
    Fix width and height with -1 value
    Reported by: Harish Vijayaraghavan <harishvraghav@gmail.com>
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  4. @nagappan

    Added 2 new APIs (multiselect, multiremove)

    nagappan authored
    Added 2 new APIs (multiselect, multiremove)
    multiselect - Select multiple rows
    multiremove - Remove multiple rows from existing selection
    
    QA Notes:
    Testing Done: Visual Studio File Open Dialog
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Jul 25, 2013
  1. @nagappan

    Added 2 new APIs (multiselect, multiremove)

    nagappan authored
    Added 2 new APIs (multiselect, multiremove)
    multiselect - Select multiple rows
    multiremove - Remove multiple rows from existing selection
    
    >>> multiselect('Open File', 'lstItemsView', ['Core.cs', 'Common.cs'])
    1
    >>> multiremove('Open File', 'lstItemsView', ['Core.cs', 'Common.cs'])
    1
    
    QA Notes:
    Testing Done: Visual Studio File Open Dialog
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Commits on Jul 19, 2013
  1. @nagappan

    Pane added for a bug in QT

    nagappan authored
    Pane added for a bug in QT
    https://cobra.codeplex.com/discussions/450296
    
    QA Notes:
    Testing Done:
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
  2. @nagappan

    Repeat the event for all windows when argument is empty

    nagappan authored
    Repeat the event (minimize, maximize, close) for all windows when argument is empty
    Use InternalXYClick on the system menu required for Google Chrome
    
    QA Notes:
    Testing Done: Minimize all window on Windows 7 SP1
    Documentation Notes:
    Bug Number:
    Reviewed by:
    Approved by:
    Mailto:
Something went wrong with that request. Please try again.