Skip to content
JakeGinnivan edited this page Mar 11, 2013 · 10 revisions

Welcome to the White wiki!

Index

Waiting while application is busy
Setting up white on a build server

FAQ

When the process I am testing crashes, I expect White to fail. How can I do this?

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.

What is the difference between System.Windows.Automation and the COM UIA Api?

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

I use my mouse left handed and have my mouse buttons swapped in Windows

Simply add the below code to your test setup CoreAppXmlConfiguration.Instance.InvertMouseButtons = !System.Windows.Forms.SystemInformation.MouseButtonsSwapped;