GNOME Bugzilla – Bug 578640
Provide a means to get the pyatspi Accessible from an LDTP expression
Last modified: 2018-09-11 19:53:23 UTC
LDTP provides a means to operate on objects, such as selectmenuitem ('*-gedit', 'mnuFile;mnuNew'). I'd like to be able to get the pyatspi Accessible object associated with that object. For example getaccessible('*-gedit', 'mnuFile;mnuNew') would return the pyatspi Accessible associated with that object. PS - I realize this depends upon LDTP migrating to pyatspi. Thanks! :-)
This won't be possible in the pyatspi rewrite either. The reason being network transparency, we can't marshal accessible instances over the wire. What is the use-case? Why would you specifically need the pyatspi object? Perhaps we could augment the API with useful functions that would negate that need.
I'm having a tough time remembering exactly why I added this RFE, but my main goal was to be able to migrate the Orca test harness (http://live.gnome.org/Orca/RegressionTesting) to LDTP.
Yes this would help integrate with accessibility test harnesses. I don't understand the network transparency issue but what I know of it (e.g. can't access Registry object via a terminal that is ssh'd into a machine) seems like a bug. Is it logged separately?
Brian, LDTP uses XMLRPC and it support only standard data types. Accessibility object or any class objects are not supported. If you are planing to run the test just on local system, then you can try like: import ldtpd.core ldtp = ldtpd.core.Ldtpd() ldtp.launchapp('gedit') ldtp.waittillguiexist('*-gedit') ldtp.click('*-gedit', 'btnOpen') acc = ldtp._get_object('*-gedit', 'btnOpen') Thanks
LDTP has moved to Github. If the problem reported in this GNOME Bugzilla ticket still exists in a recent LDTP version, please feel free to report the issue at https://github.com/ldtp/ldtp2/issues Thanks for your understanding and we apologize for the inconvenience!