<div dir="ltr">Hi Damien,<div><br></div><div style>Thanks for the bug report, I could reproduce with Win7SP1 US-English. Fixed in git head.</div><div><br></div><div>Thanks</div><div>Nagappan</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 12:07 AM, <span dir="ltr"><<a href="mailto:damien.aiello@bull.net" target="_blank">damien.aiello@bull.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="sans-serif">Hi,</font>
<br>
<br><font face="sans-serif">I'm trying to make a proof of concept
for a further benchmark.</font>
<br>
<br><font face="sans-serif">What I want to do (under Windows XP)
:</font>
<br><font face="sans-serif"> - open notepad,</font>
<br><font face="sans-serif"> - write a few words,</font>
<br><font face="sans-serif"> - save the documents somewhere
on the disks.</font>
<br>
<br><font face="sans-serif">My code (work in progress) :</font>
<br><font face="sans-serif">#-*- coding:utf-8 -*-</font>
<br>
<br><font face="sans-serif">from ldtp import *</font>
<br><font face="sans-serif">from ldtputils import *</font>
<br><font face="sans-serif">import string</font>
<br><font face="sans-serif">import random</font>
<br>
<br><font face="sans-serif">try:</font>
<br><font face="sans-serif"> launchapp("notepad",
lang= "fr_FR.utf8")</font>
<br>
<br><font face="sans-serif"> if
waittillguiexist("frmSanstitre-Bloc-notes") == 0:</font>
<br><font face="sans-serif">
raise LdtpExecutionError("Le bloc-notes
n'est pas ouvert")</font>
<br>
<br><font face="sans-serif"> enterstring("frmSanstitre-Bloc-notes",
"strTest", "abc123")</font>
<br>
<br><font face="sans-serif"> selectmenuitem("frmSanstitre-Bloc-notes",
"mnuFichier;mnuEnregistrersous...")</font>
<br>
<br><font face="sans-serif"> if
waittillguiexist ("frmEnregistrersous") == 0:</font>
<br><font face="sans-serif">
raise LdtpExecutionError ("Impossible
d'ouvrir la boite de dialogue 'Fichier -> Enregistrer sous...'")</font>
<br>
<br><font face="sans-serif"> settextvalue("frmEnregistrersous",
"cboNomdufichier", "test.txt") </font>
<br>
<br>
<br><font face="sans-serif">except LdtpExecutionError, msg:</font>
<br><font face="sans-serif"> raise</font>
<br>
<br><font face="sans-serif">This code gives me the following error
:</font>
<br><font face="sans-serif">Unable to find Object: cboNomdufichier</font>
<br>
<br><font face="sans-serif">But I can see this object if I do something
like :</font>
<br><font face="sans-serif">listeObjets=getobjectlist("frmEnregistrersous")</font>
<br><font face="sans-serif"> for
i in listeObjets:</font>
<br><font face="sans-serif">
if guiexist("frmEnregistrersous",
i):</font>
<br><font face="sans-serif">
print
i</font>
<br>
<br><font face="sans-serif">What I am doing wrong ?</font>
<br>
<br><font face="sans-serif">PS : I'm working with Cobra3 and Python
2.7 for Windows.</font>
<br>
<br>
<br><font face="sans-serif">Damien Aiello<br>
<br>
Bull, 1 rue de Provence<br>
38130 Echirolles<br>
Tél. : 04 76 29 71 36</font><br>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cross platform GUI testing</div>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>
Cobra - Windows GUI Automation tool - <a href="https://github.com/ldtp/cobra" target="_blank">https://github.com/ldtp/cobra</a><div>ATOMac - Mac GUI Automation tool - <a href="https://github.com/pyatom/pyatom" target="_blank">https://github.com/pyatom/pyatom</a></div>
<div><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a></div>
</div>