Debug .........
This commit is contained in:
parent
1506e057b3
commit
8d6c5ba824
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue