title: Not able to enter text in a edit field inside a modal/dialog using Teststack/White
body: <p>I am trying to enter text in a edit field in a modal window. I get an error "Failed to get (ControlType=edit or ControlType=document),AutomationId=1118,ClassName=Edit"</p>
  
  <p>The following is my code. </p>
  
  <p><code>var window = app.GetWindow("Toolkit Version");
              Window AuthWindow = null;
              AuthWindow = window.ModalWindow("Please Authenticate");
              TextBox userNameField = AuthWindow.Get&lt;TextBox&gt;(SearchCriteria.ByClassName("Edit").AndAutomationId("1118"));
              userNameField.Text = "Administrator";
  </code>
  From Inspect</p>
  
  <p><img src="https://user-images.githubusercontent.com/5941859/39474418-eac17288-4d21-11e8-9111-9d1c35d276af.png" alt="image"></p>
  
  <p>Error details - 
  <code>TestStack.White.AutomationException: 'Failed to get (ControlType=edit or ControlType=document),AutomationId=1118,ClassName=Edit'</code></p>
  
  <p>Any suggestions or workarounds?
  Thanks!</p>