different wait to try

This commit is contained in:
Marty30 2017-06-25 16:48:03 +02:00
parent a8c71524ac
commit 71b820ac2d

View file

@ -31,6 +31,7 @@ public class AddOwnerIT extends SeleniumBaseIT {
fillTextField(By.name("telephone"), "0534890000");
driver.findElement(By.name("telephone")).submit();
waitForPageToLoad();
waitFor(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[text()='Sophie Lathouwers']")));
Assert.assertTrue("Could not locate \"Sophie Lathouwers\" on the page. This is the html of the current page: "+getHTML(), pageContainsText("Sophie Lathouwers"));
//Add a pet