After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 578640 - Provide a means to get the pyatspi Accessible from an LDTP expression
Provide a means to get the pyatspi Accessible from an LDTP expression
Status: RESOLVED WONTFIX
Product: LDTP
Classification: Other
Component: ldtp
unspecified
Other opensolaris
: Normal normal
: ---
Assigned To: Nagappan Alagappan
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-04-10 17:49 UTC by Willie Walker
Modified: 2018-09-11 19:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Willie Walker 2009-04-10 17:49:45 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!  :-)
Comment 1 Eitan Isaacson 2009-05-14 08:58:44 UTC
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.
Comment 2 Willie Walker 2009-05-14 10:40:01 UTC
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.
Comment 3 Brian Nitz 2010-09-02 13:39:01 UTC
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?
Comment 4 Nagappan Alagappan 2012-02-23 02:10:38 UTC
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
Comment 5 André Klapper 2018-09-11 19:53:23 UTC
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!