|
|
@@ -3,6 +3,8 @@ package se.citerus.dddsample.acceptance.pages;
|
|
3
|
3
|
import org.openqa.selenium.By;
|
|
4
|
4
|
import org.openqa.selenium.WebDriver;
|
|
5
|
5
|
import org.openqa.selenium.WebElement;
|
|
|
6
|
+import org.openqa.selenium.support.ui.ExpectedConditions;
|
|
|
7
|
+import org.openqa.selenium.support.ui.WebDriverWait;
|
|
6
|
8
|
|
|
7
|
9
|
import static org.junit.Assert.assertEquals;
|
|
8
|
10
|
|
|
|
@@ -14,6 +16,8 @@ public class LaunchPage {
|
|
14
|
16
|
this.driver = driver;
|
|
15
|
17
|
this.baseUrl = baseUrl;
|
|
16
|
18
|
driver.get(baseUrl + "dddsample");
|
|
|
19
|
+ WebDriverWait wait = new WebDriverWait(driver, 10);
|
|
|
20
|
+ wait.until(ExpectedConditions.titleContains("DDDSample"));
|
|
17
|
21
|
|
|
18
|
22
|
assertEquals("DDDSample", driver.getTitle());
|
|
19
|
23
|
}
|