Get handel of edit field

Apr 20, 2011 at 3:55 PM

Hi

Facing one issue

unable to get handel of editable text box if class name was RichEdit20w & controlType was edit

code works fine if classname was edit

 code:

White.Core.UIItems.TextBox proepath = proepath1.Get<White.Core.UIItems.TextBox>(SearchCriteria.ByAutomationId("8382"

))

anyone knows how to resolve this

it will be greatfull

 

Apr 21, 2011 at 8:58 PM

Hi

does UISpy see the element?

can you try to use

AutomationElement element = proepath1.GetElement(SearchCriteria.ByAutomationId("8382"

);

TextBox box  = new TextBox(element, proepath1.ActionListener);

 

Throndorin

Apr 27, 2011 at 9:46 AM

Thanks

works fine