diff --git a/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java b/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java index a2777e697b1bcbdccd5b7a3caa7142bbabf8098a..fdf17be49815082b5b487fab5ceddf0b6df264aa 100644 --- a/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java +++ b/src/test/java/de/deadlocker8/budgetmaster/integration/helpers/IntegrationTestHelper.java @@ -163,6 +163,9 @@ public class IntegrationTestHelper WebElement sourceAccount = row.findElement(By.className("account-source")); assertEquals(sourceAccounts.get(i), IntegrationTestHelper.getTextNode(sourceAccount)); + WebDriverWait wait = new WebDriverWait(driver, 5); + wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("select-dropdown"))); + row.findElement(By.className("select-dropdown")).click(); WebElement accountToSelect = row.findElement(By.xpath("//form/table/tbody/tr[" + (i + 1) + "]/td[5]/div/div/ul/li/span[text()='" + account + "']")); accountToSelect.click();