Debug .......

This commit is contained in:
Dirk Jahnke 2019-07-27 19:39:24 +02:00
parent f99a6cdef0
commit 27d564a963
1 changed files with 4 additions and 2 deletions

View File

@ -94,7 +94,8 @@ public class BasicTest {
@Test @Test
public void verifyExistenceOfMainMenuButtons() { public void verifyExistenceOfMainMenuButtons() {
driver.switchTo().defaultContent(); //driver.switchTo().defaultContent();
driver.switchTo().frame(0);
FredlTestHelper.printPageSource(); FredlTestHelper.printPageSource();
Assert.assertEquals(FredlTestHelper.elementExistsByXpath("//frame[@name='oben']"), true); Assert.assertEquals(FredlTestHelper.elementExistsByXpath("//frame[@name='oben']"), true);
driver.switchTo().frame(driver.findElement(By.xpath("//frame[@name='oben']"))); driver.switchTo().frame(driver.findElement(By.xpath("//frame[@name='oben']")));
@ -116,7 +117,8 @@ public class BasicTest {
@Test @Test
public void verifyLogout() { public void verifyLogout() {
driver.switchTo().defaultContent(); //driver.switchTo().defaultContent();
driver.switchTo().frame(0);
Assert.assertEquals(FredlTestHelper.elementExistsByXpath("//frame[@name='oben']"), true); Assert.assertEquals(FredlTestHelper.elementExistsByXpath("//frame[@name='oben']"), true);
driver.switchTo().frame(driver.findElement(By.xpath("//frame[@name='oben']"))); driver.switchTo().frame(driver.findElement(By.xpath("//frame[@name='oben']")));
driver.findElement(By.id("logout-menu-button")).click(); driver.findElement(By.id("logout-menu-button")).click();