Hi Sandro, On Thu, Mar 5, 2009 at 5:54 AM, Sandro Millien <m...@lloedy.com> wrote:
> 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') 3rd argument here is just a string and it doesn't follow the LDTP convention. So, if you use selecttab(dlgAnjutaPreferences, 'ptl1', 'Installed plugins') it should work fine. Thanks Nagappan > > > ------------------------------------------------------------------------ > > 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. > > _______________________________________________ > LDTP-dev mailing list > LDTP-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/ldtp-dev > > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com
_______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev