Exemple #1
0
def should_be_here(driver: WebDriver, *, company_number: str = None):
    if company_number:
        url = URL.format(company_number=company_number)
    else:
        url = URL.format(company_number="07399608")
    check_url(driver, url, exact_match=False)
    logging.debug("All expected elements are visible on '%s' page", NAME)
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):
    check_url(driver, URL, exact_match=False)
def should_be_here(driver: WebDriver):
    check_url(driver, URL, exact_match=False)
    logging.debug(f"All expected elements are visible on '{NAME}' page")
def should_be_here(driver: WebDriver):
    check_url(driver, URL, exact_match=False)
    msg = f"Got 404 on {driver.current_url}"
    assert "This page cannot be found" not in driver.page_source, msg
def should_be_here(driver: WebDriver, *, page_name: str = None):
    url = SubURLs[page_name.lower()] if page_name else URL
    check_url(driver, url, exact_match=False)
    msg = f"Got 404 on {driver.current_url}"
    assert "This page cannot be found" not in driver.page_source, msg
Exemple #7
0
def should_be_here(driver: WebDriver):
    check_url(driver, URL, exact_match=True)
    logging.debug("All expected elements are visible on '%s' page", NAME)
Exemple #8
0
def should_be_here(driver: WebDriver):
    wait_for_visibility(driver, GREAT_LOGO, time_to_wait=15)
    check_url(driver, URL, exact_match=False)
    logging.debug("All expected elements are visible on '%s' page", NAME)
Exemple #9
0
def should_be_here(driver: WebDriver):
    check_url(driver, URL)
    logging.debug("All expected elements are visible on '%s' page", PAGE_TITLE)
def should_be_here(driver: WebDriver):
    check_url(driver, URL)
Exemple #11
0
def should_be_here(driver: WebDriver, *, page_name: str = None):
    url = SubURLs[page_name.lower()] if page_name else URL
    check_url(driver, url, exact_match=True)
Exemple #12
0
def should_be_here(driver: WebDriver, *, page_name: str):
    url = SubURLs[page_name.lower()] if page_name else URL
    check_url(driver, url)
    logging.debug("All expected elements are visible on '%s' page", PAGE_TITLE)
def should_be_here(driver: WebDriver, *, page_name: str = None):
    check_url(driver, URL, exact_match=True)
def should_be_here(driver: WebDriver):
    check_url(driver, URL, exact_match=False)
    check_for_expected_sections_elements(driver, SELECTORS)
Exemple #15
0
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)
Exemple #16
0
def should_be_here(driver: WebDriver, *, page_name: str):
    check_url(driver, URL, exact_match=False)
    logging.debug("All expected elements are visible on '%s' page", PAGE_TITLE)