Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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()
Beispiel #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)
Beispiel #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)
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()
Beispiel #9
0
def view_compliance_tile(driver):
    ExporterHubPage(driver).click_compliance()
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)
def click_my_end_user_advisory_link(driver):  # noqa
    ExporterHubPage(driver).click_end_user_advisories()
def click_users_link(driver):  # noqa
    exporter_hub = ExporterHubPage(driver)
    exporter_hub.click_manage_my_organisation_tile()
def click_my_goods_link(driver):  # noqa
    exporter_hub = ExporterHubPage(driver)
    exporter_hub.click_my_goods()
def click_my_application_link(driver):  # noqa
    exporter_hub = ExporterHubPage(driver)
    exporter_hub.click_applications()