title: c# white, can't find element at window
body: <p>Sorry for disturbance but it seems that I need your help.
  I am really beginner in C#, White framework.</p>
  
  <p>Here is the problem...
  I am trying to automate WinForm application, very basic.</p>
  
  <p>Manual steps for automation:</p>
  
  <ol>
  <li><p>Open window </p></li>
  <li><p>Download file to this window  </p></li>
  <li><p>Find caption at bottom of this window</p></li>
  </ol>
  
  <p>Problem: I can press any buttons, open dialogs and so on.
  But after several steps I can't find label (caption).</p>
  
  <p>I tried this code at 2 PCs. For one PC it works, for other - doesn't work.
  I saw only one time that this label was found.</p>
  
  <p>Usually I see that Studio just hang up and trying to search elements.</p>
  
  <p>I think that Studio works very quickly and elements are not available for reading. Could you help me with this?<a href="http://i.stack.imgur.com/BwECD.jpg" rel="nofollow">enter image description here</a></p>
  
  <pre><code>        //Add file name for opening
          TextBox listLoadFile = mainWindow.Get&lt;TextBox&gt;(SearchCriteria.ByText("File name:"));
          listLoadFile.Text = "Omneon_72.lst";
          application.WaitWhileBusy();
  
          //  open file
          Keyboard.Instance.PressSpecialKey(KeyboardInput.SpecialKeys.RETURN);
          application.WaitWhileBusy();
  
          mainWindow.Focus();
          mainWindow.ReloadIfCached();
  
          //Can't find this element
          Label caption3 = mainWindow.Get&lt;Label&gt;(SearchCriteria.ByAutomationId("lblStatus"));
  
          //Can't see elements
          IUIItem[] children1 = mainWindow.GetMultiple(SearchCriteria.All);
  </code></pre>