[LDTP-Dev] CobraWinLDTP-4.0.0 and Java

Igor Kovalchuk igorko at chestnutcorp.com
Fri May 16 09:26:09 PDT 2014


Hello!

Could you help me with this... I am trying to use LDTP on Windows 7 to test
a Java software, but I am getting
LdtpExecutionError: Unable to find Object: mnuFile

It opens the top-left corner system menu, when I specify "mnu#0" or
"mnu#1", but it can't open "mnuFile".

The similar thing on Linux, ldtp 2.3.1 is working ok.

Where I make a mistake?

Thank you.

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
on win32
Type "copyright", "credits" or "license()" for more information.
>>> from ldtp import *
>>> guiexist("Notepad")
1
>>> selectmenuitem("frmNotepad","mnu#0")
1
>>> selectmenuitem("frmNotepad","mnuFile")

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    selectmenuitem("frmNotepad","mnuFile")
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line
72, in __call__
    return self.__send(self.__name, args)
  File "C:\Python27\lib\xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line
193, in request
    raise LdtpExecutionError(e.faultString.encode('utf-8'))
LdtpExecutionError: Unable to find Object: mnuFile
>>>
>>> guiexist("SwingSet2")
1
>>> selectmenuitem("frmSwingSet2","mnuFile")

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    selectmenuitem("frmSwingSet2","mnuFile")
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line
72, in __call__
    return self.__send(self.__name, args)
  File "C:\Python27\lib\xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line
193, in request
    raise LdtpExecutionError(e.faultString.encode('utf-8'))
LdtpExecutionError: Unable to find Object: mnuFile
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20140516/77df1796/attachment.html>


More information about the LDTP-dev mailing list