Debug ..........
This commit is contained in:
parent
8d6c5ba824
commit
a5b468015e
|
@ -33,6 +33,7 @@ public class BasicTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void verifyFredlPageTitle() {
|
public void verifyFredlPageTitle() {
|
||||||
|
System.out.printn("----------------------------- verifyFredlPageTitle ----------------------------------");
|
||||||
driver.navigate().to(URL);
|
driver.navigate().to(URL);
|
||||||
String getTitle = driver.getTitle();
|
String getTitle = driver.getTitle();
|
||||||
System.out.println("Page title: " + getTitle);
|
System.out.println("Page title: " + getTitle);
|
||||||
|
@ -41,6 +42,7 @@ public class BasicTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void verifyLoginAsSystemUser() {
|
public void verifyLoginAsSystemUser() {
|
||||||
|
System.out.printn("----------------------------- verifyLoginAsSystemUser ----------------------------------");
|
||||||
driver.navigate().to(URL);
|
driver.navigate().to(URL);
|
||||||
System.out.println("Navigate to: " + URL);
|
System.out.println("Navigate to: " + URL);
|
||||||
|
|
||||||
|
@ -95,8 +97,11 @@ public class BasicTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void verifyExistenceOfMainMenuButtons() {
|
public void verifyExistenceOfMainMenuButtons() {
|
||||||
|
System.out.printn("----------------------------- verifyExistenceOfMainMenuButtons ----------------------------------");
|
||||||
|
driver.navigate.refresh();
|
||||||
//driver.switchTo().defaultContent();
|
//driver.switchTo().defaultContent();
|
||||||
//driver.switchTo().frame(0);
|
//driver.switchTo().frame(0);
|
||||||
|
System.out.println("Current URL=" + driver.getCurrentUrl());
|
||||||
FredlTestHelper.printPageSource();
|
FredlTestHelper.printPageSource();
|
||||||
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);
|
||||||
|
@ -120,6 +125,7 @@ public class BasicTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void verifyLogout() {
|
public void verifyLogout() {
|
||||||
|
System.out.printn("----------------------------- 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"));
|
||||||
|
|
Loading…
Reference in New Issue