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();