From c979367c7d335d566097494e01903f5a636db9ce Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Sat, 27 Jul 2019 00:54:17 +0200 Subject: [PATCH] Fixed verifyLogout test. --- src/test/java/org/fremo/fredl/test/BasicTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/fremo/fredl/test/BasicTest.java b/src/test/java/org/fremo/fredl/test/BasicTest.java index c38089c..141f169 100644 --- a/src/test/java/org/fremo/fredl/test/BasicTest.java +++ b/src/test/java/org/fremo/fredl/test/BasicTest.java @@ -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); } }