MCPcopy Create free account
hub / github.com/cryzed/Selenium-Requests / predicate

Function predicate

seleniumrequests/request.py:136–141  ·  view source on GitHub ↗
(webdriver)

Source from the content-addressed store, hash-verified

134
135def make_match_domain_predicate(domain):
136 def predicate(webdriver):
137 try:
138 return get_tld(webdriver.current_url) == domain
139 # This exception can occur if the current window handle was closed
140 except NoSuchWindowException:
141 pass
142
143 return predicate
144

Callers 1

find_window_handleFunction · 0.85

Calls 1

get_tldFunction · 0.85

Tested by

no test coverage detected