forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FluentWait.withMessage with string supplier
Add a withMethod(Supplier<String> messgaeSupplier) to be able to evaluate the message when the wait is over, thus enabling developers to show more info on the context of failure through closures. Internally, the FluentWait class is using a supplier. withMessage(String message) method kept for backward compatibility creates a supplier that return the given string. Signed-off-by: Alexei Barantsev <barancev@gmail.com>
- Loading branch information
Showing
2 changed files
with
108 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters