<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Igor,<br></div><div><br></div><div>Can you please try with Cobra from git head ?</div><div><br></div><div>I tried this:</div><div><br></div><div>selectmenuitem('frm*Notepad', 'mnuFile')</div><div><br></div><div>it works for me.</div><div><br></div><div>Thanks</div><div>Nagappan</div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Igor Kovalchuk" <igorko@chestnutcorp.com><br><b>To: </b>ldtp-dev@lists.freedesktop.org<br><b>Sent: </b>Friday, May 16, 2014 9:26:09 AM<br><b>Subject: </b>[LDTP-Dev] CobraWinLDTP-4.0.0 and Java<br><div><br></div><div dir="ltr"><div>Hello!<br><div><br></div>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><div><br></div>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><div><br></div></div></div></div>
<br>_______________________________________________<br>LDTP-dev mailing list<br>LDTP-dev@lists.freedesktop.org<br>https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/ldtp-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=ZhrTa6ovomL746Uy0k2pdTfdPgILeGnMxQdInpmTlLE%3D%0A&m=1DjBcRn5DYxuYY9npPiF8pMyPd%2Bwc1aRToWtJqk%2BSMk%3D%0A&s=c7851027da5bc767cb102b77b9b335278cdea70404d352c2eaca7a2234c2cb82<br></div><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Cross platform GUI testing<br>Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org<br>Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra<br>ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom<br>http://nagappanal.blogspot.com<span name="x"></span><br></div></div></body></html>