I have tried
public void Login_PopUP()
{
driver.get(url);
driver.switchTo().alert();
driver.findElement(By.id("userID")).sendKeys("domain/username");
driver.findElement(By.id("password")).sendKeys("password");
driver.switchTo().alert().accept();
driver.switchTo().defaultContent();
}
This is not working. I am not able to enter the input in the login alert pop up also username has a special character '\', how to handle it.
Can anyone help me with it?