diff --git a/src/test/java/org/fremo/fredl/test/BasicTest.java b/src/test/java/org/fremo/fredl/test/BasicTest.java index 37c652b..b742414 100644 --- a/src/test/java/org/fremo/fredl/test/BasicTest.java +++ b/src/test/java/org/fremo/fredl/test/BasicTest.java @@ -89,12 +89,13 @@ public class BasicTest { Assert.assertEquals(welcomeMessage, expectedWelcomeMessage); // we leave our tests always with having the driver located to the top frame - driver.switchTo().defaultContent(); + //driver.switchTo().defaultContent(); + driver.switchTo().parentFrame(); } @Test public void verifyExistenceOfMainMenuButtons() { - driver.switchTo().defaultContent(); + //driver.switchTo().defaultContent(); //driver.switchTo().frame(0); FredlTestHelper.printPageSource(); wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt("oben")); @@ -114,11 +115,12 @@ public class BasicTest { Assert.assertEquals(FredlTestHelper.elementExistsById("lola-menu-button"), true); Assert.assertEquals(FredlTestHelper.elementExistsById("logout-menu-button"), true); //driver.switchTo().defaultContent(); + driver.switchTo().parentFrame(); } @Test public void verifyLogout() { - driver.switchTo().defaultContent(); + //driver.switchTo().defaultContent(); //driver.switchTo().frame(0); wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt("oben")); //Assert.assertEquals(FredlTestHelper.elementExistsByXpath("//frame[@name='oben']"), true);