Hi Sandro,<br><br><div class="gmail_quote">On Thu, Mar 5, 2009 at 5:54 AM, Sandro Millien <span dir="ltr">&lt;<a href="mailto:msp@lloedy.com">msp@lloedy.com</a>&gt;</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 = &#39;anjuta&#39;<br>
window = &#39;frm*Anjuta*&#39;<br>
dlgAnjutaPreferences = &#39;dlgAnjutaPreferences&#39;<br>
<br>
appundertest(program)<br>
launchapp(program)<br>
waittillguiexist(window)<br>
selectmenuitem(window, &#39;mnuEdit;mnuPreferences&#39;)<br>
waittillguiexist(dlgAnjutaPreferences)<br>
<br>
if verifytabname(dlgAnjutaPreferences, &#39;ptl1&#39;, &#39;Installed plugins&#39;):<br>
        print &quot;Tab &#39;Installed plugins&#39; does exists in ptl1&quot;<br>
<br>
selecttab(dlgAnjutaPreferences, &#39;ptl1&#39;, &#39;ptabInstalledplugins&#39;)</blockquote><div><br>3rd argument here is just a string and it doesn&#39;t follow the LDTP convention. So, if you use<br> <br>selecttab(dlgAnjutaPreferences, &#39;ptl1&#39;, &#39;Installed plugins&#39;)<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 &#39;Installed plugins&#39; does exists in ptl1<br>
Traceback (most recent call last):<br>
  File &quot;projects/sandbox/sbx-python/tests1.py&quot;, line 18, in &lt;module&gt;<br>
    selecttab(dlgAnjutaPreferences, &#39;ptl1&#39;, &#39;ptabInstalledplugins&#39;)<br>
  File &quot;/opt/lib/python2.5/ldtp.py&quot;, line 2584, in selecttab<br>
    raise LdtpExecutionError (_responseStatus [1])<br>
ldtplib.ldtplibutils.LdtpExecutionError: u&#39;Page tab name does not exist&#39;<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 : &quot;Yes, there is a tab<br>
called &#39;Installed plugins&#39; on ptl1 in dlgAnjutaPreferences&quot;<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>