More logging

This commit is contained in:
Marty30 2017-06-25 15:50:59 +02:00
parent c9d54ba6b8
commit a8c71524ac

View file

@ -31,7 +31,7 @@ public class AddOwnerIT extends SeleniumBaseIT {
fillTextField(By.name("telephone"), "0534890000");
driver.findElement(By.name("telephone")).submit();
waitForPageToLoad();
Assert.assertTrue(pageContainsText("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
waitFor(ExpectedConditions.presenceOfAllElementsLocatedBy(By.linkText("Add New Pet")));