This project is read-only.

Don't know how to use white !

Jul 26, 2012 at 5:05 PM

Hi I am totally new and don't know how to use white . Can anybody help me to learn how to use white ?

My use of this app is I want to write a program in C# that fill a form(Username and Password) in a specific site then click sign in and then do something in that site (exp. Select a tab).

And by the way I tried to generate a code using white recorder and added the references (white.core and white.repository) And I just copied the generated code and paste it to c# program but it didn't work . It had some syntax errors .

Can anyone help me with these things ?


Jul 27, 2012 at 3:37 PM


test project should generate a dll.


add References to White.Core.dll and White.nunit.dll


add References to all UIAutomation things (.Net )



you start with the Application


Application app = Application.Launch(<path>);


than get the Window;


Window window = app.GetWindow(window name);


from the window get other elements like  TextBoxes (Edit fields) or Buttons


Textbox box = window.Get<TextBox>(SearchCriteria.ByAutomationId("id"));


Button button = window.Get<Button>(SearchCriteria.ByAutomationId("id"));


box.BulkText = "some text";




and so on


note the recorder is beta, and I have never used the recorder.