Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions py/selenium/webdriver/support/wait.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ def until(self, method: Callable[[D], Union[Literal[False], T]], message: str =
raise TimeoutException(message, screen, stacktrace)

def until_not(self, method: Callable[[D], T], message: str = "") -> Union[T, Literal[True]]:
"""Wait until the method returns a value that is not False.
"""Wait until the method returns a value that is False.

Calls the method provided with the driver as an argument until the
return value does not evaluate to ``False``.
return value evaluates to ``False``.

Parameters:
-----------
Expand Down