package cz.moneta.test.dsl.ib.insurance.travel;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.components.MainMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.insurance.travel.ShortTermTravelInsuranceCreatePage.CONTINUE_BUTTON;

@Wait(CONTINUE_BUTTON)
public interface ShortTermTravelInsuranceCreatePage extends IbPageFlow<ShortTermTravelInsuranceCreatePage>, MainMenu {

    String ACCOUNT_SELECT = "//select[@name='accountNumber']";
    String REGION_EUROPE_SELECT = "//input[@id='regionEurope']";
    String REGION_WORLD_SELECT = "//input[@id='regionWorld']";
    String VARIANT_SINGLE_SELECT = "//input[@id='variantSingle']";
    String VARIANT_FAMILY_SELECT = "//input[@id='variantFamily']";
    String LICENCE_AGREEMENT_CHECKBOX = "//input[@name='licenceAgreement1']";
    String INSURANCE_AGREEMENT_CHECKBOX = "//input[@name='licenceAgreement2']";
    String CONTINUE_BUTTON = "//a[@id='btnContinue']";

    @Click(ACCOUNT_SELECT)
    ShortTermTravelInsuranceCreatePage clickAccountSelect();

    @Click(REGION_WORLD_SELECT)
    ShortTermTravelInsuranceCreatePage clickRegionWorldSelect();

    @Click(REGION_EUROPE_SELECT)
    ShortTermTravelInsuranceCreatePage clickRegionEuropeSelect();

    @Click(VARIANT_SINGLE_SELECT)
    ShortTermTravelInsuranceCreatePage clickVariantSingleSelect();

    @Click(VARIANT_FAMILY_SELECT)
    ShortTermTravelInsuranceCreatePage clickVariantFamilySelect();

    @Click(LICENCE_AGREEMENT_CHECKBOX)
    ShortTermTravelInsuranceCreatePage clickLicenceAgreement();

    @Click(INSURANCE_AGREEMENT_CHECKBOX)
    ShortTermTravelInsuranceCreatePage clickInsuranceAgreement();

    @Click(CONTINUE_BUTTON)
    ShortTermTravelInsuranceAuthorizePage clickContinueButton();
}