コード例 #1
0
def create_standard_individual_transhipment_application(driver,
                                                        context):  # noqa
    ExporterHubPage(driver).click_apply_for_a_licence()
    ApplyForALicencePage(driver).select_licence_type("transhipment")
    functions.click_submit(driver)
    enter_type_of_application(driver, "sitl", context)
    enter_application_name(driver, context)
    enter_export_licence(driver, "yes", "123456", context)
コード例 #2
0
def create_standard_application(driver, good_type, country, context):  # noqa
    ExporterHubPage(driver).click_apply_for_a_licence()
    ApplyForALicencePage(driver).select_licence_type("export_licence")
    functions.click_submit(driver)
    enter_type_of_application(driver, "ogel", context)
    ogel = OgelPage(driver)
    ogel.enter_control_list_entry(good_type)
    ogel.enter_country(country)
コード例 #3
0
def create_standard_application(driver, export_type, context):  # noqa
    ExporterHubPage(driver).click_apply_for_a_licence()
    ApplyForALicencePage(driver).select_licence_type("export_licence")
    functions.click_submit(driver)
    enter_type_of_application(driver, "siel", context)
    enter_permanent_or_temporary(driver, export_type, context)
    enter_application_name(driver, context)
    enter_export_licence(driver, "yes", "123456", context)
コード例 #4
0
def create_open_app(driver, export_type, context):  # noqa
    ExporterHubPage(driver).click_apply_for_a_licence()
    ApplyForALicencePage(driver).select_licence_type("export_licence")
    functions.click_submit(driver)
    enter_type_of_application(driver, "oiel", context)
    choose_open_licence_category(driver, "military", context)
    enter_permanent_or_temporary(driver, export_type, context)
    enter_application_name(driver, context)
    answer_firearms_question(driver)
コード例 #5
0
def create_standard_individual_trade_control_application(driver,
                                                         context):  # noqa
    ExporterHubPage(driver).click_apply_for_a_licence()
    apply_for_licence_page = ApplyForALicencePage(driver)
    apply_for_licence_page.select_licence_type("trade_control_licence")
    functions.click_submit(driver)
    enter_type_of_application(driver, "sicl", context)
    enter_application_name(driver, context)
    apply_for_licence_page.select_trade_control_activity()
    apply_for_licence_page.select_trade_control_product_category()
コード例 #6
0
def create_open_app_of_specific_type(driver, licence_type, context):  # noqa
    ExporterHubPage(driver).click_apply_for_a_licence()
    ApplyForALicencePage(driver).select_licence_type("export_licence")
    functions.click_submit(driver)
    enter_type_of_application(driver, "oiel", context)
    choose_open_licence_category(driver, licence_type, context)

    if licence_type in ["military", "uk_continental_shelf"]:
        enter_permanent_or_temporary(driver, "permanent", context)

    enter_application_name(driver, context)
    if licence_type in ["military", "uk_continental_shelf"]:
        answer_firearms_question(driver)
コード例 #7
0
def go_to_add_open_licence_return(driver, context):
    # Go to form
    open_licence_returns_page = OpenLicenceReturnsPage(driver)
    ExporterHubPage(driver).click_open_licence_returns()
    open_licence_returns_page.click_submit_return()

    # Fill out details (skip info page)
    context.open_licence_return_year = str(datetime.now().year)
    functions.click_submit(driver)
    open_licence_returns_page.select_year(context.open_licence_return_year)
    functions.click_submit(driver)
    file_path = get_temporary_file_path(context.open_licence_csv_filename)
    AttachDocumentPage(driver).choose_file(file_path)
    functions.click_submit(driver)
コード例 #8
0
def raise_query_on_behalf_of_my_first_org(driver, context):
    ExporterHubPage(driver).click_raise_hmrc_query()
    page = HMRCQueryFindOrganisationPage(driver)
    page.search_for_org(context.org_name)
    page.click_org_radio_button(context.org_id)
    page.click_continue()
コード例 #9
0
def view_compliance_tile(driver):
    ExporterHubPage(driver).click_compliance()
コード例 #10
0
def create_mod_application(driver, context, type):  # noqa
    ExporterHubPage(driver).click_apply_for_a_licence()
    ApplyForALicencePage(driver).select_licence_type(type)
    functions.click_submit(driver)
コード例 #11
0
def click_my_end_user_advisory_link(driver):  # noqa
    ExporterHubPage(driver).click_end_user_advisories()
コード例 #12
0
def click_users_link(driver):  # noqa
    exporter_hub = ExporterHubPage(driver)
    exporter_hub.click_manage_my_organisation_tile()
コード例 #13
0
def click_my_goods_link(driver):  # noqa
    exporter_hub = ExporterHubPage(driver)
    exporter_hub.click_my_goods()
コード例 #14
0
def click_my_application_link(driver):  # noqa
    exporter_hub = ExporterHubPage(driver)
    exporter_hub.click_applications()