From 077d23176a8f098766bf492081ae5ab9acb2d285 Mon Sep 17 00:00:00 2001
From: Carsten Lenz <clenz2@csc.com>
Date: Fri, 13 Jun 2014 08:26:23 -0400
Subject: [PATCH] Add german translation of welcome.mkd

---
 src/test/java/de/akquinet/devops/test/ui/view/RepoEditView.java |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/test/java/de/akquinet/devops/test/ui/view/RepoEditView.java b/src/test/java/de/akquinet/devops/test/ui/view/RepoEditView.java
index a3365d1..0309bce 100644
--- a/src/test/java/de/akquinet/devops/test/ui/view/RepoEditView.java
+++ b/src/test/java/de/akquinet/devops/test/ui/view/RepoEditView.java
@@ -24,9 +24,9 @@
 
 /**
  * class representing the tabs you can access when you edit a repo.
- * 
+ *
  * @author saheba
- * 
+ *
  */
 public class RepoEditView extends GitblitDashboardView {
 
@@ -60,7 +60,6 @@
 		String linkText = "access permissions";
 		List<WebElement> found = getDriver().findElements(
 				By.partialLinkText(linkText));
-		System.out.println("PERM TABS found =" + found.size());
 		if (found != null && found.size() == 1) {
 			found.get(0).click();
 			return true;
@@ -119,12 +118,11 @@
 		String xpath = "//input[@name =\"authorizationControl\" and @value=\""
 				+ option + "\"]";
 		List<WebElement> found = getDriver().findElements(By.xpath(xpath));
-		System.out.println("found auth CONTROL options " + found.size());
-		if (found == null || found.size() == 0 || found.size() > 1) {
-			return false;
+		if (found != null && found.size() == 1) {
+			found.get(0).click();
+			return true;
 		}
-		found.get(0).click();
-		return true;
+		return false;
 	}
 
 	private boolean isPermissionViewDisabled(String prefix, String view) {

--
Gitblit v1.9.1