def fill_out(driver: WebDriver, details: dict): form_selectors = SELECTORS["form"] fill_out_input_fields(driver, form_selectors, details) fill_out_textarea_fields(driver, form_selectors, details) pick_option(driver, form_selectors, details) tick_checkboxes(driver, form_selectors, details) tick_captcha_checkbox(driver)
def enter_business_objectives_details(driver: WebDriver, startdate: str, enddate: str, objectives: str, owner: str, plannedreviews: str): input_field_selectors = SELECTORS["business objectives"] input_details_dict = {"start date": startdate, "end date": enddate, "owner": owner} fill_out_input_fields(driver, input_field_selectors, input_details_dict) text_area_details_dict = {"objective text": objectives, "planned review": plannedreviews} fill_out_textarea_fields(driver, input_field_selectors, text_area_details_dict) time.sleep(1)
def fill_out(driver: WebDriver, contact_us_details: dict, *, captcha: bool = True): form_selectors = SELECTORS["form"] fill_out_input_fields(driver, form_selectors, contact_us_details) fill_out_textarea_fields(driver, form_selectors, contact_us_details) pick_option(driver, form_selectors, contact_us_details) tick_checkboxes_by_labels(driver, form_selectors, contact_us_details) if contact_us_details["captcha"]: tick_captcha_checkbox(driver)
def fill_out(driver: WebDriver, details: dict): form_selectors = SELECTORS["form"] check_random_radio(driver, form_selectors) fill_out_textarea_fields(driver, form_selectors, details)