Help Accessing Datagrid with White

Jun 22, 2009 at 5:51 AM

I am trying to write code to access a Delphi datagrid for an AUT.  UISpy finds the datagrid, but it will list the datagrid as a pane with a Horizontal ScrollBar and Vertical ScrollBar.  It doens't list any cells of the grid.  What should I do to find/acces the elements of the grid?

 

Shown below is a logStructure ofthe datagrid UIItem.

 

ControlType: ControlType.Pane
Name:
HelpText:
Bounding rectangle: 203,466,385,265
ClassName: TDBGrid
IsOffScreen: False
FrameworkId: Win32
ProcessId: 1520

System.Windows.Automation.ScrollPattern

    AutomationId: Horizontal ScrollBar
    ControlType: ControlType.ScrollBar
    Name: Horizontal Scroll Bar
    HelpText:
    Bounding rectangle: 205,713,365,16
    ClassName:
    IsOffScreen: False
    FrameworkId: Win32
    ProcessId: 1520

    System.Windows.Automation.RangeValuePattern

        AutomationId: SmallDecrement
        ControlType: ControlType.Button
        Name: Back by small amount
        HelpText:
        Bounding rectangle: 205,713,16,16
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

        AutomationId: LargeDecrement
        ControlType: ControlType.Button
        Name: Back by large amount
        HelpText:
        Bounding rectangle: Empty
        ClassName:
        IsOffScreen: True
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

        AutomationId: Thumb
        ControlType: ControlType.Thumb
        Name: Thumb
        HelpText:
        Bounding rectangle: 221,713,16,16
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520


        AutomationId: LargeIncrement
        ControlType: ControlType.Button
        Name: Forward by large amount
        HelpText:
        Bounding rectangle: 237,713,317,16
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

        AutomationId: SmallIncrement
        ControlType: ControlType.Button
        Name: Forward by small amount
        HelpText:
        Bounding rectangle: 554,713,16,16
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

    AutomationId: Vertical ScrollBar
    ControlType: ControlType.ScrollBar
    Name: Vertical Scroll Bar
    HelpText:
    Bounding rectangle: 570,468,16,245
    ClassName:
    IsOffScreen: False
    FrameworkId: Win32
    ProcessId: 1520

    System.Windows.Automation.RangeValuePattern

        AutomationId: SmallDecrement
        ControlType: ControlType.Button
        Name: Back by small amount
        HelpText:
        Bounding rectangle: 570,468,16,16
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

        AutomationId: LargeDecrement
        ControlType: ControlType.Button
        Name: Back by large amount
        HelpText:
        Bounding rectangle: Empty
        ClassName:
        IsOffScreen: True
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

        AutomationId: Thumb
        ControlType: ControlType.Thumb
        Name: Thumb
        HelpText:
        Bounding rectangle: 570,484,16,128
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520


        AutomationId: LargeIncrement
        ControlType: ControlType.Button
        Name: Forward by large amount
        HelpText:
        Bounding rectangle: 570,612,16,85
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

        AutomationId: SmallIncrement
        ControlType: ControlType.Button
        Name: Forward by small amount
        HelpText:
        Bounding rectangle: 570,697,16,16
        ClassName:
        IsOffScreen: False
        FrameworkId: Win32
        ProcessId: 1520

        System.Windows.Automation.InvokePattern

Coordinator
Jun 25, 2009 at 4:30 PM

have you checked this

http://white.codeplex.com/Wiki/View.aspx?title=Third%20Party%20Controls

Jun 25, 2009 at 9:15 PM

Thanks for the quick response. I'll try these and get back to you.  When is the next schedule update for White?

Coordinator
Jun 29, 2009 at 4:03 PM

I am creating a release plan, would post the news when I am done.