Debugging login
This commit is contained in:
		@@ -65,9 +65,6 @@ public class BasicTest  {
 | 
			
		||||
		  consentButton.click();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
                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"))));
 | 
			
		||||
 | 
			
		||||
@@ -82,10 +79,16 @@ public class BasicTest  {
 | 
			
		||||
                String expectedTitle = "FreDL";
 | 
			
		||||
                wait.until(ExpectedConditions.titleIs(expectedTitle));
 | 
			
		||||
 | 
			
		||||
                String body = driver.getPageSource();
 | 
			
		||||
                System.out.println("HTML: " + body);
 | 
			
		||||
 | 
			
		||||
                //driver.switchTo().frame("oben");
 | 
			
		||||
                String frameObenName = "oben";
 | 
			
		||||
                wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName));
 | 
			
		||||
 | 
			
		||||
                String body = driver.getPageSource();
 | 
			
		||||
                System.out.println("HTML: " + body);
 | 
			
		||||
 | 
			
		||||
		String versionInfo = driver.findElement(By.xpath("//table/tr/td/b")).getText();
 | 
			
		||||
		String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText();
 | 
			
		||||
                System.out.println("Version info found: " + versionInfo);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user