Bugzilla – Bug 506961
pyatspi LookupError raised when attempting to call queryAccessible
Last modified: 2009-07-14 17:55:26 UTC
PROBLEM STATEMENT I have no idea what might be causing this, but I was trying to write a script to attach to another bug I was logging, and the script is resulting in a unexpected pyatspi LookupError REPRO 1. Run uia2atk/test/samples/menustrip.py 2. Run the attached pyatspi script, and remember to click on the menustrip.py application's title bar when prompted. 3. The script attempts to do the following: 1. Perform a 'click' action on the "Edit" menu to open it 2. Perform 'selectChild(1)' on the "Edit" menu to select the "Paste" menu item 3. Print the states "Paste" menu item 4. Press the "Down" key to move the keyboard focus from the "Paste" menu item to the "Copy" menu item. 5. Print the states of the "Paste" menu item again RESULTS When attempting to call queryAccessible on the paste menu item so that I can print the states of the "Paste" menu a second time, the script crashes and I get the following traceback: Traceback (most recent call last): File "./bug.py", line 51, in <module> ai = paste_menu_item.queryAccessible() File "/usr/lib/python2.6/site-packages/pyatspi/accessible.py", line 207, in _inner raise LookupError(e) LookupError This is unexpected and weird, because I do the exact same thing earlier on line 41. EXPECTED RESULTS I would expect the queryAccessible method call to succeed :) COMMENTS This seems really weird to me, but I rebooted and ran the script several times to verify. I am able to do similar tests in Accerciser just fine, but I can't duplicate the exact test case as this script from Accerciser .
I am marking this as a Major because it could potentially cause problems for ATs if it turns out to be valid. I am also making it a P2, because it is blocking me from testing some other potential bugs.
Created attachment 294311 [details] pyatspi script referenced in REPRO steps
Created attachment 294312 [details] pyatspi script referenced in REPRO steps Oops, I had a typo in the previously attached script.
Move all P1 and P2 bugs into Release 1.1 milestone.