for (final By by : elementBys) {
waitForElementExists(by);
}
}
public Alert switchToAlert() {
<BUG>return waitForAMoment().until(new Function<WebDriver, Alert>() {
</BUG>
@Override
public Alert apply(WebDriver driver) {
try {

for (final By by : elementBys) {
waitForElementExists(by);
}
}
public Alert switchToAlert() {
return waitForAMoment().withMessage("alert").until(new Function<WebDriver, Alert>() {
@Override
public Alert apply(WebDriver driver) {
try {
