package com.vaadin.tests.tb3.newelements;
import org.openqa.selenium.WebElement;
+import org.openqa.selenium.support.ui.ExpectedConditions;
+import org.openqa.selenium.support.ui.WebDriverWait;
import com.vaadin.testbench.By;
import com.vaadin.testbench.elements.NotificationElement;
WebElement caption = popup.findElement(By.tagName("h1"));
return caption.getText();
}
+
+ public void close() {
+ click();
+ WebDriverWait wait = new WebDriverWait(getDriver(), 10);
+ wait.until(ExpectedConditions.not(ExpectedConditions
+ .presenceOfAllElementsLocatedBy(By.className("v-Notification"))));
+ }
}