MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / url_changes

Function url_changes

py/selenium/webdriver/support/expected_conditions.py:152–165  ·  view source on GitHub ↗

Check that the current url differs from a given string. Args: url: The expected url, which must not be an exact match. Returns: True when the url does not match, False otherwise.

(url: str)

Source from the content-addressed store, hash-verified

150
151
152def url_changes(url: str) -> Callable[[WebDriver], bool]:
153 """Check that the current url differs from a given string.
154
155 Args:
156 url: The expected url, which must not be an exact match.
157
158 Returns:
159 True when the url does not match, False otherwise.
160 """
161
162 def _predicate(driver: WebDriver):
163 return url != driver.current_url
164
165 return _predicate
166
167
168def visibility_of_element_located(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected