How to type the text in NotePad using White

May 5, 2009 at 8:45 AM
Hi!

Could you help me?

I study UIA and White in details by means of testing calculator and NotePad.

I need to write the test that has to type a new text in NotePad and to save it as txt.file.

How to type the text in NotePad using White? What UIItem can I use?


thanks,
Alexey
Coordinator
May 25, 2009 at 7:23 AM

You can do something like following after you have the handle to the window object.

MultilineTextBox textBox = window.Get(SearchCriteria.ByControlType(typeof(MultilineTextBox));

textBox.Text = "foo";