mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 22:43:57 +00:00
Bug 4339: Selenium compatibility adjustment
This commit is contained in:
1 parent
322a4552db
commit
2b3be971eb
1 file changed
+4
-3
+4
-3
@@ -1,10 +1,11 @@
|
||||
package com.sap.sailing.selenium.pages.autoplay;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.WebDriverWait;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import com.sap.sailing.selenium.core.BySeleniumId;
|
||||
import com.sap.sailing.selenium.core.FindBy;
|
||||
import com.sap.sailing.selenium.pages.PageArea;
|
||||
@@ -33,10 +34,10 @@ public class AutoPlayConfiguration extends PageArea {
|
||||
ListBoxPO.create(driver, leaderboardSelectionBox).selectOptionByLabel(leaderboard);
|
||||
WebDriverWait wait = new WebDriverWait(driver, 10);
|
||||
//wait till the page processed the changes
|
||||
wait.until(new Predicate<WebDriver>() {
|
||||
wait.until(new Function<WebDriver, Boolean>() {
|
||||
|
||||
@Override
|
||||
public boolean apply(WebDriver arg0) {
|
||||
public Boolean apply(WebDriver arg0) {
|
||||
return getConfiguredUrl() != null && !getConfiguredUrl().isEmpty();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user