Debug .........

This commit is contained in:
Dirk Jahnke 2019-07-27 20:07:45 +02:00
parent 1506e057b3
commit 8d6c5ba824
1 changed files with 5 additions and 3 deletions

View File

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