]> source.dussan.org Git - archiva.git/commitdiff
Trying to fix chrome issues with the WebDriver
authorMartin Stockhammer <martin_s@apache.org>
Sat, 10 Jun 2017 09:34:59 +0000 (11:34 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Sat, 10 Jun 2017 09:34:59 +0000 (11:34 +0200)
archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/RepositoryAdminTest.java

index 6dbf5ebc6d7b0b7ffc29d0d3b89af0bb63c4b03c..c1eccfab9c70934f7c21b44395bf7009d071fdc4 100644 (file)
@@ -54,7 +54,7 @@ public class RepositoryAdminTest
         tryClick( el,  ExpectedConditions.presenceOfElementLocated( By.id( "managed-repositories-view-a" ) ),
             "Managed Repositories not activated");
         el = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@href='#remote-repositories-content']")));
-        tryClick(el,ExpectedConditions.visibilityOfElementLocated(By.id("remote-repositories-view-a")),
+        tryClick(el,ExpectedConditions.visibilityOfElementLocated(By.xpath("//table[@id='remote-repositories-table']//td[contains(text(),'central')]")),
             "Remote Repositories View not available");
         el = wait.until(ExpectedConditions.elementToBeClickable( By.xpath("//a[@href='#remote-repository-edit']") ));
         el = tryClick(el, ExpectedConditions.visibilityOfElementLocated(By.id("remote-repository-save-button")),