title: How to handle basic browser authentication using Selenium WebDriver Java?
body: <p>Using Selenium Webdriver with Java, I can open a URL with basic auth using driver.get("<a href="http://User:Pass@URL" rel="nofollow noreferrer">http://User:Pass@URL</a>"). But for a webpage URL1/page1 which loads URL2/page2 inside iframe, it again asks for URL2 basic auth.</p>
  
  <p>Please spare AutoIt solution. Java Robot class solution also does not solve the problem as it starts typing the credentials on whatever application is open.  </p>