Dealing unexpected pop ups during test runnig RRS feed

  • Question

  • Im runnig a recorded test and it fails because of unexpected pop ups (MessageBox).

    is there a way to deal with it in visual studio 2010?


    Thanks for the help.

    Sunday, May 30, 2010 10:00 AM


  • You can search for such windows and do anything you want to do with them.    

          WinWindow win = new WinWindow();
          UITestControlCollection col = win.FindMatchingControls();

          foreach (WinWindow wind in col)
                  // Dismiss or take appropriate actions

    Please mark this post as answer if this answers your question
    Sunday, May 30, 2010 5:58 PM