CodedUI test not waiting for control to exist
===

I'm waiting for a control to exist, but the test fails before the button exists.

It gives the error `The control is not available or not valid`

The code I'm using is:

    uIOKButton.WaitForControlExist(2000000);

    // Click 'OK' button
    Mouse.Click(uIOKButton, new Point(46, 19));

Is there anyway to stop it from failling other than increasing the timeout?



Thanks

