|
|
@@ -1,6 +1,8 @@ |
|
|
|
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; |
|
|
@@ -13,4 +15,11 @@ public class FixedNotificationElement extends 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")))); |
|
|
|
} |
|
|
|
} |