StartInstaller works. Debugging logout.
This commit is contained in:
parent
a509166cfa
commit
cf5579d82b
|
@ -93,11 +93,9 @@ public class BasicTest {
|
|||
|
||||
@Test
|
||||
public void verifyLogout() {
|
||||
WebElement logoutButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin")));
|
||||
|
||||
String frameObenName = "oben";
|
||||
wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName));
|
||||
|
||||
|
||||
FredlTestHelper.printPageSource();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class StartInstaller {
|
|||
String getTitle = driver.getTitle();
|
||||
System.out.println("Page title: " + getTitle);
|
||||
|
||||
FredlTestHelper.printPageSource();
|
||||
// FredlTestHelper.printPageSource();
|
||||
|
||||
if (FredlTestHelper.elementExistsByXpath("//table[@class='loginall']")) {
|
||||
// Login page shown, thus we do not need to start the installer
|
||||
|
@ -55,9 +55,12 @@ public class StartInstaller {
|
|||
Assert.assertEquals(installerLink.getText(), expectedInstallerLinkText);
|
||||
installerLink.click();
|
||||
|
||||
FredlTestHelper.printPageSource();
|
||||
// FredlTestHelper.printPageSource();
|
||||
|
||||
//WebElement appLink = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin")));
|
||||
String expectedAppLinkText = "Go to application";
|
||||
WebElement appLink = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@href='/']")));
|
||||
Assert.assertEquals(appLink.getText(), expectedAppLinkText);
|
||||
appLink.click();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue