From f1bc38524dcd00f7e6a1f36f5466c8584a81f30d Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 19:33:30 +0200 Subject: [PATCH] Debugging login --- src/test/java/BasicTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 921bcf6..3099f57 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -90,10 +90,12 @@ public class BasicTest { String versionInfo = driver.findElement(By.xpath("//table[1]/tbody/tr/td[1]/b")).getText(); String userInfo = driver.findElement(By.xpath("//table[1]/tbody/tr/td[3]")).getText(); + String expectedUserInfo = "Benutzer: FREDL System (Syste)"; System.out.println("Version info found: " + versionInfo); System.out.println("User info found: " + userInfo); + Assert.assertEquals(userInfo, expectedUserInfo); - driver.switchTo().frame(2); // switch to lower part containing left and right + driver.switchTo().frame(1); // switch to lower part containing left and right String frameRechtsName = "rechts"; driver.switchTo().frame(frameRechtsName); body = driver.getPageSource();