Bug 506961 - pyatspi LookupError raised when attempting to call queryAccessible
Summary: pyatspi LookupError raised when attempting to call queryAccessible
Status: NEW
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - General (show other bugs)
Version: Release 1.0
Hardware: x86 openSUSE 11.1
: P2 - High : Major
Target Milestone: Release 1.1
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-26 00:31 UTC by Brian Merrell
Modified: 2009-07-14 17:55 UTC (History)
1 user (show)

See Also:
Found By: Integration Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
pyatspi script referenced in REPRO steps (1.60 KB, text/plain)
2009-05-26 01:21 UTC, Brian Merrell
Details
pyatspi script referenced in REPRO steps (1.60 KB, text/plain)
2009-05-26 01:37 UTC, Brian Merrell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Merrell 2009-05-26 00:31:30 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 .
Comment 1 Brian Merrell 2009-05-26 00:33:34 UTC
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.
Comment 2 Brian Merrell 2009-05-26 01:21:52 UTC
Created attachment 294311 [details]
pyatspi script referenced in REPRO steps
Comment 3 Brian Merrell 2009-05-26 01:37:03 UTC
Created attachment 294312 [details]
pyatspi script referenced in REPRO steps

Oops, I had a typo in the previously attached script.
Comment 4 Brad Taylor 2009-07-14 16:08:33 UTC
Move all P1 and P2 bugs into Release 1.1 milestone.