title: FailedToperformActionOnBlockedControlException when try to use Visual Studio UI tester
body: <p>I'm trying to put in place some UI tests with Visual Studio for my UI project in c# with WPF.</p>
  
  <p>So I created a Test project and I started to create Coded UI tests as said in the tutoriel of Microsoft : <a href="http://msdn.microsoft.com/en-us/library/dd286681%28v=vs.100%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd286681%28v=vs.100%29.aspx</a>.</p>
  
  <p>But when i launch the tests, i have the following exception :</p>
  
  <pre><code>MyProjectTestsUnitaires.CodedUITest1.CodedUITestMethod1 test method threw an exception:
  Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Control is blocked by another control. Make the blocked control visible and retry.
  </code></pre>
  
  <p>This append when i click on one of a button of the Windows Ribbon. More precisely, when i study the code generated for this test,  here what i have : </p>
  
  <pre><code>WpfTabList uIRibbonTabList = this.UIProjectWindow.UIRubbanCustom.UIRibbonTabList;
              WpfTabPage uIONGLET2TabPage = this.UIProjectWindow.UIRubbanCustom.UIRibbonTabList.UIONGLET2TabPage;
              WinListItem uIImagesjpgListItem = this.UIOuvrirWindow.UIItemWindow.UIVuedélémentsList.UIImagesjpgListItem;
              #endregion
  
          ApplicationUnderTest MyProjectApplication = ApplicationUnderTest.Launch(this.RecordedMethod1Params.ExePath, this.RecordedMethod1Params.AlternateExePath);
  
          // Clic 'Ribbon' liste d'onglets
          Mouse.Click(uIRibbonTabList, new Point(0, 82));
  
          // Clic 'ONGLET2' onglet
          Mouse.Click(uIONGLET2TabPage, new Point(-152, 58));
  
          // Clic 'ONGLET2' onglet
          Mouse.Click(uIONGLET2TabPage, new Point(-129, 53));
  
          // Double-clic 'images.jpg' élément de liste
          Mouse.DoubleClick(uIImagesjpgListItem, new Point(25, 60));
  </code></pre>
  
  <p>I see with this code that the clicks are performed on the ONGLET2 of the ribbon which is the second header, whereas it is not visible on the screen. The clicks would have been registered on the ONGLET1 which is the first header.</p>
  
  <p>How can we use the UI tests with the windows ribbon ? </p>
  
  <p>Thanks for your help</p>