<div dir="ltr"><div>Hello!<br><br>Could you help me with this... I am trying to use LDTP on Windows 7 to test a Java software, but I am getting <br>LdtpExecutionError: Unable to find Object: mnuFile<br></div><div><br></div>
<div>It opens the top-left corner system menu, when I specify "mnu#0" or "mnu#1", but it can't open "mnuFile".<br></div><div><br>The similar thing on Linux, ldtp 2.3.1 is working ok.<br></div>
<div><div><br>Where I make a mistake?<br><br>Thank you.<br></div><div><br>Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32<br>Type "copyright", "credits" or "license()" for more information.<br>
>>> from ldtp import *<br>>>> guiexist("Notepad")<br>1<br>>>> selectmenuitem("frmNotepad","mnu#0")<br>1<br>>>> selectmenuitem("frmNotepad","mnuFile")<br>
<br>Traceback (most recent call last):<br> File "<pyshell#3>", line 1, in <module><br> selectmenuitem("frmNotepad","mnuFile")<br> File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 72, in __call__<br>
return self.__send(self.__name, args)<br> File "C:\Python27\lib\xmlrpclib.py", line 1578, in __request<br> verbose=self.__verbose<br> File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 193, in request<br>
raise LdtpExecutionError(e.faultString.encode('utf-8'))<br>LdtpExecutionError: Unable to find Object: mnuFile<br>>>> <br>>>> guiexist("SwingSet2")<br>1<br>>>> selectmenuitem("frmSwingSet2","mnuFile")<br>
<br>Traceback (most recent call last):<br> File "<pyshell#6>", line 1, in <module><br> selectmenuitem("frmSwingSet2","mnuFile")<br> File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 72, in __call__<br>
return self.__send(self.__name, args)<br> File "C:\Python27\lib\xmlrpclib.py", line 1578, in __request<br> verbose=self.__verbose<br> File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 193, in request<br>
raise LdtpExecutionError(e.faultString.encode('utf-8'))<br>LdtpExecutionError: Unable to find Object: mnuFile<br>>>> <br><br></div></div></div>