title: Unable to switch to a dialog box in Selenium-WebDriver using Java?
body: <p>When I clicked on a button a new dialog box appeared in the same browser. Is it possible to switch to the dialog box in Selenium-WebDriver using Java?</p>
  
  <p>I found that it's not an alert or there is no iframe present in the page.
  As soon as the dialog box opens the parent window page is loading until I close the box and the new window appears in the same browser.
  I tried window handles option but none of them solved my issue.
  Please suggest a solution to this?</p>