title: Coded ui: Another control is blocking the control
body: <p>I am trying to automate desktop application using CodedUI I am getting below error while I am trying click on buttons. Please suggest to me a resolution.</p>
  
  <pre><code>{"Another control is blocking the control. Please make the blocked control visible and retry the action. Additional Details: 
   TechnologyName:  'MSAA'
   ClassName:  'WindowsForms10.BUTTON'
   ControlType:  'Window'\r\n"}
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>WinWindow SearchButtonWindow = new WinWindow();
              SearchButtonWindow.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
              SearchButtonWindow.SearchConfigurations.Add(SearchConfiguration.VisibleOnly);
              SearchButtonWindow.SearchProperties[WinWindow.PropertyNames.ControlType] = "Window";
              SearchButtonWindow.SearchProperties[WinWindow.PropertyNames.ControlName] = "cmdSearch";
              //SearchButtonWindow.WindowTitles.Contains("Ascend Retail Management Software");
              WinButton SearchButton = new WinButton();
              SearchButton.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
              SearchButton.SearchConfigurations.Add(SearchConfiguration.VisibleOnly);
  
              SearchButton.SearchProperties[WinWindow.PropertyNames.ControlType] = "Button";
              SearchButton.SearchProperties[WinButton.PropertyNames.ControlName]= "cmdSearch";
  
              Mouse.Click(SearchButton);
  </code></pre>