Bug 500400 - progress bar accessible gets its name from a ToolStripLabel instead of a Label
Summary: progress bar accessible gets its name from a ToolStripLabel instead of a Label
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 : Normal
Target Milestone: Release 1.1
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-03 00:26 UTC by Brian Merrell
Modified: 2009-07-14 17:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Merrell 2009-05-03 00:26:18 UTC
PROBLEM STATEMENT:

According to MSDN (http://msdn.microsoft.com/en-us/library/ms743681.aspx):

"The progress bar control typically gets its name from a static text label. If there is not a static text label the application developer must expose a value for the Name property."

However, for the same sample (uia2atk/test/samples/statusstrip.py), the progress bar accessible gets its name from a different label depending on whether the sample is being run in Linux or Windows.  The name of the progress bar accessible in Linux is "ToolStripLabel Text..." (which is actually the text of a ToolStripStatusLabel control), but the initial name of the progress bar accessible in Windows "Examples for: StatusStrip" (which is actually a Label control).

REPRO

IN LINUX:
1.  Run uia2atk/test/samples/statusstrip.py
2.  Run Accerciser
3.  Browse to the accessible with the progress bar role in Accerciser's left pane

IN WINDOWS:
1.  Run uia2atk/test/samples/statusstrip.py
2.  Run UI Spy
3.  Browse to the progress bar accessible in UI Spy's left pane

RESULTS

IN LINUX:
The name of the progress bar accessible is "ToolstripLabelText.."

IN WINDOWS:
The name of the progress bar accessible is "Examples for: StatusStrip."

EXPECTED RESULTS

I would expect that the Windows behavior is correct.  I.e., I would expect the name of the progress bar accessible be "Examples for: StatusStrip." in both Windows and Linux.
Comment 1 Sanford Armstrong 2009-05-03 01:08:55 UTC
We can probably do better here, but in early testing of Label/Name associations, it was impossible to determine the algorithm used by Microsoft to match controls with their labels, so we came up with our own way to find the "nearest" label.

But given that this is text from a ToolStripLabel, which is completely ridiculous, it's probably a more straightforward bug.  :-)
Comment 2 Ray Wang 2009-05-04 05:58:34 UTC
trackbar also has such a little bit similar to this issue, and Mike resolve it. 
post here as a reference.
bug 472767 (https://bugzilla.novell.com/show_bug.cgi?id=472767)
Comment 3 Brian Merrell 2009-05-08 19:36:21 UTC
Updating the bug summary to better describe the bug (based on Sandy's Comment #1).  Also bumping to P3, because I don't think it's too terribly important (relative to some other bugs) that the progress bar name be correct.
Comment 4 Brad Taylor 2009-07-14 16:08:27 UTC
Move all P1 and P2 bugs into Release 1.1 milestone.