def should_be_here(driver: WebDriver, *, page_name: str = None): if page_name: url = SubURLs[page_name] logging.debug(f"visit url info -> {url} {page_name}") check_url_path_matches_template(url, driver.current_url) else: check_url(driver, URL, exact_match=False)
def should_be_here(driver: WebDriver, *, page_name: str = None): check_url_path_matches_template(URL, driver.current_url)
def should_be_here(driver: WebDriver): check_url_path_matches_template(URL, driver.current_url)
def should_be_here(driver: WebDriver, *, page_name: str = None): if page_name: url = SubURLs[page_name] check_url_path_matches_template(url, driver.current_url) else: check_url(driver, URL, exact_match=False)