Search code examples
c#automationwhite-framework

C# wait user interaction with White


Im thinking of using White for my simple windos ui automation. First i run external application from my application using System.Diagnostics.Process. When the external application opens is going to give me a dialog where the user has insert some text and click OK button. What i need is to wait until the dialog is closed or detect the OK button is clicked. All i need is some indication that user is finished with that dialog and i can go on with my automation tasks.

Is there any way doing this with White? Any other options also welcome!


Solution

  • You can setup a title on that dialog, and schedule a timer to find a child window among Main window's children. If it's not found, you can proceed. Should work.