Skip to content

Commit 38e8963

Browse files
authored
fix: update ExpectedCondition to extend java util Function (#10695)
Fixes #10606 [skip ci]
1 parent a84d600 commit 38e8963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/openqa/selenium/support/ui/ExpectedCondition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
// NB: this originally extended Guava's Function interface since Java didn't have one. To avoid code
3636
// such as "com.google.common.base.Function condition = ExpectedConditions.elementFound(By);"
3737
// breaking at compile time, we continue to extend Guava's Function interface.
38-
public interface ExpectedCondition<T> extends Function<WebDriver, T> {}
38+
public interface ExpectedCondition<T> extends Function<WebDriver, T>, java.util.function.Function<WebDriver, T> {}

0 commit comments

Comments
 (0)