def submit(driver: WebDriver) -> Union[ModuleType, None]:
    return submit_form(driver, SELECTORS["form"])
Exemple #2
0
def submit(driver: WebDriver) -> Union[ModuleType, None]:
    return submit_form(driver, SELECTORS["enter your business details"])
Exemple #3
0
def pick_radio_option_and_submit(driver: WebDriver, name: str) -> ModuleType:
    radio_selectors = get_selectors(SELECTORS["form"], ElementType.RADIO)
    choose_one_form_option(driver, radio_selectors, name)
    submit_form(driver, SELECTORS["form"])
    return POs[name.lower()]
Exemple #4
0
def submit(driver: WebDriver) -> Union[ModuleType, None]:
    return submit_form(driver, SELECTORS["subscribe for email updates"])
Exemple #5
0
def submit(driver: WebDriver,
           form_name: str = None) -> Union[ModuleType, None]:
    return submit_form(driver, SELECTORS[form_name
                                         or "subscribe for email updates"])
Exemple #6
0
def submit(driver: WebDriver) -> Union[ModuleType, None]:
    return submit_form(driver,
                       SELECTORS["form"],
                       wait_for_new_page_to_load=False)