Debugging login
This commit is contained in:
parent
90382a6a6c
commit
9d2065993b
|
@ -58,8 +58,6 @@ public class BasicTest {
|
|||
public void verifyLoginAsSystemUser() {
|
||||
driver.navigate().to(URL);
|
||||
System.out.println("Navigate to: " + URL);
|
||||
// String body = driver.getPageSource();
|
||||
// System.out.println("HTML: " + body);
|
||||
|
||||
if (elementExistsById("privacy-cookie-statement")) {
|
||||
System.out.println("Cookies consent page is shown");
|
||||
|
@ -67,8 +65,11 @@ public class BasicTest {
|
|||
consentButton.click();
|
||||
}
|
||||
|
||||
// WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin")));
|
||||
WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin"))));
|
||||
String body = driver.getPageSource();
|
||||
System.out.println("HTML: " + body);
|
||||
|
||||
WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin")));
|
||||
// WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin"))));
|
||||
|
||||
String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tr/td[0]/div")).getText();
|
||||
System.out.println("Scale: " + scaleInfo);
|
||||
|
|
Loading…
Reference in New Issue