In Selenium, the following code is supposed to get you to an alert. Specifically, a log-in pop-up:
Alert alert = driver.switchTo().alert();
H