From 71b820ac2d6ac69809916c837c27614193651262 Mon Sep 17 00:00:00 2001 From: Marty30 Date: Sun, 25 Jun 2017 16:48:03 +0200 Subject: [PATCH] different wait to try --- src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java b/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java index 91158ea62..52a98b4f3 100644 --- a/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java +++ b/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java @@ -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