Skip to content

Commit

Permalink
fix: update ExpectedCondition to extend java util Function (SeleniumH…
Browse files Browse the repository at this point in the history
…Q#10695)

Fixes SeleniumHQ#10606

[skip ci]
  • Loading branch information
ammmze authored and elgatov committed Jun 27, 2022
1 parent 291502d commit 8ac9ea9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,4 +35,4 @@
// NB: this originally extended Guava's Function interface since Java didn't have one. To avoid code
// such as "com.google.common.base.Function condition = ExpectedConditions.elementFound(By);"
// breaking at compile time, we continue to extend Guava's Function interface.
public interface ExpectedCondition<T> extends Function<WebDriver, T> {}
public interface ExpectedCondition<T> extends Function<WebDriver, T>, java.util.function.Function<WebDriver, T> {}

0 comments on commit 8ac9ea9

Please sign in to comment.