Debugging login
This commit is contained in:
parent
7705c71587
commit
f1bc38524d
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue