[LDTP-Dev] CobraWinLDTP-4.0.0 and Java
Nagappan Alagappan
nalagappan at vmware.com
Tue May 20 21:41:20 PDT 2014
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" <igorko at chestnutcorp.com>
To: ldtp-dev at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20140520/8a7f2af5/attachment.html>
More information about the LDTP-dev
mailing list