You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2017/06/09 23:26:21 UTC

archiva git commit: Trying another fix for a chrome error

Repository: archiva
Updated Branches:
  refs/heads/master 0643a0fb3 -> 5aab7ac1b


Trying another fix for a chrome error


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/5aab7ac1
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/5aab7ac1
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/5aab7ac1

Branch: refs/heads/master
Commit: 5aab7ac1b972bd9859e6df8f17f49b91070d1b59
Parents: 0643a0f
Author: Martin Stockhammer <ma...@apache.org>
Authored: Sat Jun 10 01:25:53 2017 +0200
Committer: Martin Stockhammer <ma...@apache.org>
Committed: Sat Jun 10 01:25:53 2017 +0200

----------------------------------------------------------------------
 .../apache/archiva/web/test/parent/AbstractSeleniumTest.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/5aab7ac1/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/parent/AbstractSeleniumTest.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/parent/AbstractSeleniumTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/parent/AbstractSeleniumTest.java
index df0c09d..8e4a340 100644
--- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/parent/AbstractSeleniumTest.java
+++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/parent/AbstractSeleniumTest.java
@@ -623,6 +623,7 @@ public abstract class AbstractSeleniumTest
 
     public <V> V tryClick(By clickableLocator, Function<? super WebDriver, V> conditions, String message, int attempts, int maxWaitTimeInS) {
 
+        getWebDriver().manage().window().maximize();
         int count = attempts;
         WebDriverWait wait = new WebDriverWait( getWebDriver(), maxWaitTimeInS );
         V result = null;
@@ -634,9 +635,7 @@ public abstract class AbstractSeleniumTest
             {
                 el = wait.until(ExpectedConditions.elementToBeClickable( clickableLocator ));
                 Actions actions = new Actions(getWebDriver());
-                actions.moveToElement(el);
-                actions.perform();
-                el.click();
+                actions.moveToElement(el).click().perform();
                 result = wait.until( conditions  );
                 return result;
             } catch (Exception e) {