Hi Igor, Can you please try with Cobra from git head ?
I tried this: selectmenuitem('frm*Notepad', 'mnuFile') it works for me. Thanks Nagappan ----- Original Message ----- From: "Igor Kovalchuk" <igo...@chestnutcorp.com> To: ldtp-dev@lists.freedesktop.org Sent: Friday, May 16, 2014 9:26:09 AM Subject: [LDTP-Dev] CobraWinLDTP-4.0.0 and Java 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 >>> _______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org 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 -- Cross platform GUI testing Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom http://nagappanal.blogspot.com
_______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev