Hi Sandro,<br><br><div class="gmail_quote">On Thu, Mar 5, 2009 at 5:54 AM, Sandro Millien <span dir="ltr"><<a href="mailto:msp@lloedy.com">msp@lloedy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi brothers,<br>
<br>
The script given as attachment and copied below,<br>
---------------------- test1.py ---------------------------------------<br>
#!/usr/bin/env python<br>
from ldtp import *<br>
<br>
<br>
program = 'anjuta'<br>
window = 'frm*Anjuta*'<br>
dlgAnjutaPreferences = 'dlgAnjutaPreferences'<br>
<br>
appundertest(program)<br>
launchapp(program)<br>
waittillguiexist(window)<br>
selectmenuitem(window, 'mnuEdit;mnuPreferences')<br>
waittillguiexist(dlgAnjutaPreferences)<br>
<br>
if verifytabname(dlgAnjutaPreferences, 'ptl1', 'Installed plugins'):<br>
print "Tab 'Installed plugins' does exists in ptl1"<br>
<br>
selecttab(dlgAnjutaPreferences, 'ptl1', 'ptabInstalledplugins')</blockquote><div><br>3rd argument here is just a string and it doesn't follow the LDTP convention. So, if you use<br> <br>selecttab(dlgAnjutaPreferences, 'ptl1', 'Installed plugins')<br>
<br>it should work fine.<br><br>Thanks<br>Nagappan<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
------------------------------------------------------------------------<br>
<br>
ends up in the following exception on my system :<br>
<br>
<br>
----------------------------------------------------------------------<br>
~$ python tests1.py<br>
GTK Accessibility Module initialized<br>
Bonobo accessibility support initialized<br>
Tab 'Installed plugins' does exists in ptl1<br>
Traceback (most recent call last):<br>
File "projects/sandbox/sbx-python/tests1.py", line 18, in <module><br>
selecttab(dlgAnjutaPreferences, 'ptl1', 'ptabInstalledplugins')<br>
File "/opt/lib/python2.5/ldtp.py", line 2584, in selecttab<br>
raise LdtpExecutionError (_responseStatus [1])<br>
ldtplib.ldtplibutils.LdtpExecutionError: u'Page tab name does not exist'<br>
<br>
-----------------------------------------------------------------------<br>
<br>
My question is :<br>
How on earth can verifytabname be successful and selecttab however<br>
fail. As gave the two functions, the exact same parameters ?<br>
Did I miss something ?<br>
<br>
What I understand is that verifytabname is saying : "Yes, there is a tab<br>
called 'Installed plugins' on ptl1 in dlgAnjutaPreferences"<br>
<br>
So selecttab should just pick it.<br>
<br>
Please, can someone check if this also fails on his system for me ?<br>
<br>
I use Ubuntu jaunty, and anjuta 2.24.2<br>
<br>
Cheers,<br>
<font color="#888888">Sandro.<br>
</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"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>