Skip to content

Commit

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

[skip ci]
  • Loading branch information
ammmze authored Jun 8, 2022
1 parent a84d600 commit 38e8963
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 38e8963

Please sign in to comment.