Access to Infragistic controls

May 22, 2008 at 8:56 PM

My application uses Infragistic controls.  In one specific case, I am using UltraMaskedEdit control.  I tried to access it with

 

SearchCriteria searchCriteria = SearchCriteria.ByAutomationId(automationId);

 

 

WinFormTextBox textBoxToFill = AppData.mainWindow.Get<WinFormTextBox>(searchCriteria);

But it didn't work.  Can you tell me how I can enter/read data from this control?

 

Coordinator
May 26, 2008 at 7:58 AM
Can you do a window.LogStructure and send me the output of that.
May 27, 2008 at 2:31 PM


viveksingh wrote:
Can you do a window.LogStructure and send me the output of that.



AutomationElement

General Accessibility

AccessKey: ""

AcceleratorKey: ""

IsKeyboardFocusable: "True"

LabeledBy: "(null)"

HelpText: ""

State

IsEnabled: "True"

HasKeyboardFocus: "False"

Identification

ClassName: "WindowsForms10.Window.8.app.0.b7ab7b"

ControlType: "ControlType.Pane"

Culture: "(null)"

AutomationId: "WA2SplitPrecentUltraMaskedEdit"

LocalizedControlType: "pane"

Name: "50.00"

ProcessId: "2072 (OmacClient.vshost)"

RuntimeId: "42 136198"

IsPassword: "False"

IsControlElement: "True"

IsContentElement: "True"

Visibility

BoundingRectangle: "(694, 241, 80, 20)"

ClickablePoint: "733,245"

IsOffscreen: "False"

ControlPatterns

Coordinator
May 30, 2008 at 6:31 AM
Edited May 30, 2008 at 6:33 AM
Sorry for not responding earlier.
I think you need to create your own custom UIItem for UltraMaskedEdit control. Because unlike TextBox this control is not exposed by UIAutomation as of Edit control type.
Let me know if you need help with writing custom item. It is documented here http://www.codeplex.com/white/Wiki/View.aspx?title=Custom%20UI%20Item&referringTitle=Home