Handling an async modal dialog in a Coded UI Test


  • I am trying to test a piece of software that has a modal dialog that pops up randomly (warning about licensing issues).  Is there any way to detect when this dialog comes up and close it?  I tried running the code in a background thread, but that didn't work.  I really don't want to have to test for the existence of the dialog between every command (and introduce race conditions with the testing).
    Monday, April 04, 2011 10:56 PM