[LDTP-Dev] Page tab name does not exist

Sandro Millien msp at lloedy.com
Thu Mar 5 05:54:40 PST 2009


Hi brothers,

The script given as attachment and copied below,
---------------------- test1.py ---------------------------------------
#!/usr/bin/env python
from ldtp import *


program = 'anjuta'
window = 'frm*Anjuta*'
dlgAnjutaPreferences = 'dlgAnjutaPreferences'

appundertest(program)
launchapp(program)
waittillguiexist(window)
selectmenuitem(window, 'mnuEdit;mnuPreferences')
waittillguiexist(dlgAnjutaPreferences)

if verifytabname(dlgAnjutaPreferences, 'ptl1', 'Installed plugins'):
	print "Tab 'Installed plugins' does exists in ptl1"

selecttab(dlgAnjutaPreferences, 'ptl1', 'ptabInstalledplugins')

------------------------------------------------------------------------

ends up in the following exception on my system :


----------------------------------------------------------------------
~$ python tests1.py 
GTK Accessibility Module initialized
Bonobo accessibility support initialized
Tab 'Installed plugins' does exists in ptl1
Traceback (most recent call last):
  File "projects/sandbox/sbx-python/tests1.py", line 18, in <module>
    selecttab(dlgAnjutaPreferences, 'ptl1', 'ptabInstalledplugins')
  File "/opt/lib/python2.5/ldtp.py", line 2584, in selecttab
    raise LdtpExecutionError (_responseStatus [1])
ldtplib.ldtplibutils.LdtpExecutionError: u'Page tab name does not exist'

-----------------------------------------------------------------------

My question is :
How on earth can  verifytabname be successful and selecttab however
fail. As gave the two functions, the exact same parameters ?
Did I miss something ?

What I understand is that verifytabname is saying : "Yes, there is a tab
called 'Installed plugins' on ptl1 in dlgAnjutaPreferences"

So selecttab should just pick it.

Please, can someone check if this also fails on his system for me ?

I use Ubuntu jaunty, and anjuta 2.24.2

Cheers,
Sandro.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tests1.py
Type: text/x-python
Size: 474 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/ldtp-dev/attachments/20090305/611fc9bc/attachment.py 


More information about the LDTP-dev mailing list