-
Notifications
You must be signed in to change notification settings - Fork 486
Home
Welcome to the White wiki!
Waiting while application is busy
Setting up white on a build server
First off, you need to disable Windows Error Reporting, view this GIST for details
Then if you handle the process exited event, you can check the error code and throw an exception to fail your test.
I have asynchronous or background processes running in my app, how can I wait without using Thread.Sleep()
This is a complex subject with many scenarios and many solutions.
Head to the Waiting page for some help.
White was written against the .net managed automation API (Refered to as SWA from now on) which is under the System.Windows.Automation namespace. This managed wrapper has custom behaviours over the COM Api, but does not support many new automation patterns added in Windows 7 & 8.
Read more here
Simply add the below code to your test setup
CoreAppXmlConfiguration.Instance.InvertMouseButtons = !System.Windows.Forms.SystemInformation.MouseButtonsSwapped;