title: Program stuck after opening a popup
body: <p>The tool clicks a button and a modal window appears (where I need to fill in some information and later move to parent window). But as soon as the new modal window appears, my code stops. The code resumes once I <strong>manually close the new popup window.</strong></p>
  
  <p>Since the code itself halts, I am not able to perform any actions in the new popup window, nor in the parent window.</p>
  
  <pre><code>System.out.println ("Up");
  WebElement addButton = driver.findElement(By.id("btnAdd"));
  addButton.click ();
  System.out.println ("Down");
  </code></pre>
  
  <p>In the above code, <strong>Up</strong> gets printed in the console while <strong>Down</strong> doesn't get printed until I manually close the popup window.</p>