title: Off screen element teststack white
body: <p>I need to automate 3rd party WPF application. I use
  TestStack/White. This application has menu bar that is presented by images. After some actions menu is changing. There presents new images. When I want to click on new image:</p>
  
  <pre><code>Window mainWindow = application.GetWindow("Main window", InitializeOption.NoCache);
  Image newTask = mainWindow.Get&lt;Image&gt;(SearchCriteria.ByControlType(ControlType.Image).AndIndex(2));
  newTask.Click();
  </code></pre>
  
  <p>I get exception:</p>
  
  <blockquote>
    <p>TestStack.White.AutomationException: Cannot perform action on Image.
    AutomationId:, Name:, ControlType:image, FrameworkId:WPF, element is
    offscreen.</p>
  </blockquote>
  
  <p>I use Microsoft Inspect for research elements.
  When I start tests, Inspect show me that image is offscreen. But if I do these actions manually, it works perfectly and in Inspect this image is not offscreen.</p>
  
  <p>How can I refresh these elements or clear cache of window?</p>