Hi Jayanth, On Wed, Jul 29, 2009 at 6:28 PM, Srijayanth Sridhar <srijaya...@gmail.com>wrote:
> Thanks Nagappan. > > I use sniff and seems to work well enough so far. I got dogtail to work but > their documentation isn't funky. > > Mago looks interesting btw. I see you are on both the LDTP and Mago > projects. Mago looks particularly interesting. When does it come out? I'm author of LDTP :) and so I'm there. Mago project uses LDTP and so, I got involved over there ! Its an ongoing effort. So, I doubt there will be any release for it. Mago is targeted mainly for GNOME and soon KDE in upstream and distribution level. Thanks Nagappan > > > Jayanth > > On Thu, Jul 30, 2009 at 6:53 AM, Nagappan Alagappan <nagap...@gmail.com>wrote: > >> Hello Jayanth, >> >> If you are using latest distribution, you can see all the accessible >> information through Accerciser application. >> >> Thanks >> Nagappan >> >> >> On Wed, Jul 29, 2009 at 5:55 AM, Srijayanth Sridhar <srijaya...@gmail.com >> > wrote: >> >>> Hello all, >>> >>> For some vague reason the click() function isn't defined on certain types >>> of Node objects, I have no clue why, I haven't looked at the code in detail, >>> but I took the Node.click() method, rewrote it as a standalone function and >>> passed the eventbox into it and it works. So I think this might actually be >>> a bug at some level, or a really strange feature. >>> >>> Nagappan, thanks for LDTP. I'll take a look at that one as well. >>> >>> Thank you, >>> >>> Jayanth >>> >>> >>> On Wed, Jul 29, 2009 at 5:57 PM, Nagappan Alagappan >>> <nagap...@gmail.com>wrote: >>> >>>> Hello Jayanth, >>>> >>>> Did you get a chance to try the same with LDTP [1] ? Its being used by >>>> GNOME automation project [2], Ubuntu, VMware, Palm Source. >>>> >>>> [1] - http://ldtp.freedesktop.org >>>> [2] - http://mago.ubuntu.com >>>> >>>> Thanks >>>> Nagappan >>>> >>>> On Wed, Jul 29, 2009 at 12:07 AM, Srijayanth Sridhar < >>>> srijaya...@gmail.com> wrote: >>>> >>>>> Hello, >>>>> >>>>> I am trying to use dogtail to make a demonstration about automating >>>>> tests for certain gtk applications we develop. I managed to get a fair bit >>>>> of it working but I am having a hard time getting dogtail to send events >>>>> to >>>>> certain types of widgets, primarily the EventBox widget. >>>>> >>>>> I've googled and not found anything significant. Has anyone worked on >>>>> this? I am pasting some code. >>>>> >>>>> # This program draws a simple window with an event box in it. The >>>>> # eventbox is attached to the on_evbox_clicked() function and prints >>>>> # a simple message upon being clicked. >>>>> >>>>> import pygtk >>>>> pygtk.require('2.0') >>>>> import atk >>>>> import gtk >>>>> >>>>> def on_evbox_clicked(evbox,event): >>>>> print "Simple click event" >>>>> >>>>> evbox = gtk.EventBox() >>>>> evbox.connect("button-release-event",on_evbox_clicked) >>>>> evbox_acc = evbox.get_accessible() >>>>> evbox_acc.set_name("test event box") >>>>> window = gtk.Window() >>>>> window.add(evbox) >>>>> window.connect("delete-event",gtk.main_quit) >>>>> window_acc = window.get_accessible() >>>>> window_acc.set_name("test window") >>>>> window_acc.set_role(atk.ROLE_WINDOW) >>>>> window.show_all() >>>>> gtk.main() >>>>> >>>>> # end of eventbox.py >>>>> >>>>> -------------------------------------------- >>>>> >>>>> from dogtail.utils import run >>>>> from dogtail import tree >>>>> from os import environ,path,remove >>>>> >>>>> app=tree.root.application('eventbox.py') >>>>> evbox=app.child("test event box") >>>>> print evbox.actions >>>>> >>>>> # actions are showing up as an empty dict. :( >>>>> >>>>> ---------------------------------- >>>>> >>>>> So for some vague reason the eventbox has no actions associated with >>>>> it. >>>>> >>>>> Does anyone have a clue why this is so? >>>>> >>>>> Thank you, >>>>> >>>>> Jayanth >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> BangPypers mailing list >>>>> BangPypers@python.org >>>>> http://mail.python.org/mailman/listinfo/bangpypers >>>>> >>>>> >>>> >>>> >>>> -- >>>> Linux Desktop (GUI Application) Testing Project - >>>> http://ldtp.freedesktop.org >>>> http://nagappanal.blogspot.com >>>> >>>> _______________________________________________ >>>> BangPypers mailing list >>>> BangPypers@python.org >>>> http://mail.python.org/mailman/listinfo/bangpypers >>>> >>>> >>> >>> _______________________________________________ >>> BangPypers mailing list >>> BangPypers@python.org >>> http://mail.python.org/mailman/listinfo/bangpypers >>> >>> >> >> >> -- >> Linux Desktop (GUI Application) Testing Project - >> http://ldtp.freedesktop.org >> http://nagappanal.blogspot.com >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers@python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com
_______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers