RemoteWebDriver d = (RemoteWebDriver) driver;
By b = By.xpath(alertPassword);
WebElement el = driver.findElement(b);
el.click();
Alert alert = waitForAlert(driver);
WebElement field = driver.findElement(By.xpath("//UIAAlert//UIASecureTextField"));
Assert.assertEquals(field.getAttribute("value"), "");
alert.sendKeys("test");
Assert.assertEquals(field.getAttribute("value"), "••••");
alert.accept();
try {
d.switchTo().alert();
Assert.fail("alert should be gone.");
} catch (NoAlertPresentException e) {