Debugging login

This commit is contained in:
Dirk Jahnke 2019-07-25 19:33:30 +02:00
parent 7705c71587
commit f1bc38524d
1 changed files with 3 additions and 1 deletions

View File

@ -90,10 +90,12 @@ public class BasicTest {
String versionInfo = driver.findElement(By.xpath("//table[1]/tbody/tr/td[1]/b")).getText(); 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 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("Version info found: " + versionInfo);
System.out.println("User info found: " + userInfo); 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"; String frameRechtsName = "rechts";
driver.switchTo().frame(frameRechtsName); driver.switchTo().frame(frameRechtsName);
body = driver.getPageSource(); body = driver.getPageSource();