mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 23:01:04 +00:00
Bug 4339: Using java.util.function.Function instead of the google.common
one for the newer Selenium version
This commit is contained in:
1 parent
a6103ed3e4
commit
7dfdc6a786
7 files changed
+10
-9
No files matched your search
+2
-2
@@ -1,8 +1,8 @@
|
||||
package com.sap.sailing.selenium.core;
|
||||
|
||||
import org.openqa.selenium.SearchContext;
|
||||
import java.util.function.Function;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import org.openqa.selenium.SearchContext;
|
||||
|
||||
/**
|
||||
* <p>Models a condition that might reasonably be expected to eventually evaluate to something that is neither
|
||||
|
||||
+1
-2
@@ -3,6 +3,7 @@ package com.sap.sailing.selenium.core;
|
||||
import java.lang.reflect.Field;
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.NoSuchElementException;
|
||||
@@ -11,8 +12,6 @@ import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.pagefactory.ElementLocator;
|
||||
import org.openqa.selenium.support.ui.FluentWait;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* <p>An element locator, which will lazily locate and wait for an element or an element list to appear, by polling the
|
||||
* UI on a regular basis. It is possible to define the maximum amount of time to wait for the element or the list of
|
||||
|
||||
+1
-1
@@ -7,6 +7,7 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import java.util.function.Function;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@@ -22,7 +23,6 @@ import org.openqa.selenium.support.ui.ExpectedConditions;
|
||||
import org.openqa.selenium.support.ui.FluentWait;
|
||||
import org.openqa.selenium.support.ui.WebDriverWait;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.sap.sailing.selenium.core.AjaxCallsComplete;
|
||||
import com.sap.sailing.selenium.core.AjaxCallsExecuted;
|
||||
import com.sap.sailing.selenium.core.BySeleniumId;
|
||||
|
||||
+2
-1
@@ -1,5 +1,7 @@
|
||||
package com.sap.sailing.selenium.pages.adminconsole;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.openqa.selenium.Alert;
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.NoAlertPresentException;
|
||||
@@ -9,7 +11,6 @@ import org.openqa.selenium.WebDriver.TargetLocator;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.FluentWait;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.sap.sailing.selenium.pages.PageObject;
|
||||
|
||||
public class ActionsHelper {
|
||||
|
||||
+1
-1
@@ -6,13 +6,13 @@ import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.openqa.selenium.TimeoutException;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.FluentWait;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.sap.sailing.domain.common.BoatClassMasterdata;
|
||||
import com.sap.sailing.selenium.core.BySeleniumId;
|
||||
import com.sap.sailing.selenium.core.FindBy;
|
||||
|
||||
+2
-1
@@ -1,11 +1,12 @@
|
||||
package com.sap.sailing.selenium.pages.adminconsole.wind;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.openqa.selenium.TimeoutException;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.FluentWait;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.sap.sailing.selenium.core.BySeleniumId;
|
||||
import com.sap.sailing.selenium.core.FindBy;
|
||||
import com.sap.sailing.selenium.pages.PageArea;
|
||||
|
||||
+1
-1
@@ -1,13 +1,13 @@
|
||||
package com.sap.sailing.selenium.pages.autoplay;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.openqa.selenium.StaleElementReferenceException;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.WebDriverWait;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
import com.sap.sailing.selenium.pages.PageArea;
|
||||
|
||||
public class AutoPlayUpcomingView extends PageArea {
|
||||
|
||||
Reference in new issue
Block a user