Fixed verifyLogout test.

This commit is contained in:
Dirk Jahnke 2019-07-27 00:54:17 +02:00
parent d4ad20e813
commit c979367c7d
1 changed files with 5 additions and 2 deletions

View File

@ -114,9 +114,12 @@ public class BasicTest {
@Test
public void verifyLogout() {
String frameObenName = "oben";
wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName));
driver.switchTo().defaultContent();
driver.switchTo().frame("oben");
driver.findElement(By.id("logout-menu-button")).click();
FredlTestHelper.printPageSource();
Assert.assertEquals(FredlTestHelper.elementExistsByXpath("//input[@name='doLogin']"), true);
}
}