(webdriver)
| 134 | |
| 135 | def 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 |
no test coverage detected