Browse Source

Trying another fix for a chrome error

citest
Martin Stockhammer 7 years ago
parent
commit
5aab7ac1b9

+ 2
- 3
archiva-modules/archiva-web/archiva-webapp-test/src/test/java/org/apache/archiva/web/test/parent/AbstractSeleniumTest.java View File

@@ -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) {

Loading…
Cancel
Save