Bug 4339: Selenium compatibility adjustment

This commit is contained in:
Steffen Schaefer committed 2018-04-24 08:32:13 +02:00
1 parent 322a4552db
commit 2b3be971eb
1 file changed
+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();
}
});