title: Selenium alert authentification
body: <p>I am trying to access a website located on my localhost. When I navigate to it, an alert appears and I have to authenticate, but when I use the method "authenticateUsing", it shows me that it does not exist. Can anyone help me? </p>
  
  <pre><code>        System.setProperty("webdriver.chrome.driver","C:\\chromedriver.exe");
          WebDriver driver = new ChromeDriver();
          driver.navigate().to("http://localhost:8015/thing/Home");
          String username = "a";
          String password = "bbbbb";
          WebDriverWait wait = new WebDriverWait(driver, 10);      
          Alert alert = wait.until(ExpectedConditions.alertIsPresent());     
          alert.authenticateUsing(new UserAndPassword(username, password));
  </code></pre>
  
  <p>The error looks like:
  <a href="https://i.stack.imgur.com/zCJPA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zCJPA.png" alt="enter image description here"></a></p>
  
  <p>I want to fill an alert like this one:
  <a href="https://i.stack.imgur.com/ORxyx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ORxyx.png" alt="enter image description here"></a></p>