Please tell me the code for set user name and password for Authentication popup window
System.setProperty("webdriver.chrome.driver","Driver//chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("http://admin3-dev.ca.primus");
WebDriverWait wait = new WebDriverWait(driver, 10);
Alert alert = wait.until(ExpectedConditions.alertIsPresent());
alert.authenticateUsing(new UserAndPassword("nsingh","Primus01"));
The user name and password is not passed in authentication popup on above code.Please tell me how to click on login button also.