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

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.electronicpayment.ElectronicPaymentInsuranceCreatePage.CONTINUE_BUTTON;

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

    String ACCOUNT_SELECT = "//select[@name='accountNumber']";
    String LICENCE_AGREEMENT_CHECKBOX = "//input[@name='licenceAgreement1']";
    String INSURANCE_AGREEMENT_CHECKBOX = "//input[@name='licenceAgreement2']";
    String CONTINUE_BUTTON = "//a[@id='btnContinue']";

    @Click(ACCOUNT_SELECT)
    ElectronicPaymentInsuranceCreatePage clickAccountSelect();

    @Click(LICENCE_AGREEMENT_CHECKBOX)
    ElectronicPaymentInsuranceCreatePage clickLicenceAgreement();

    @Click(INSURANCE_AGREEMENT_CHECKBOX)
    ElectronicPaymentInsuranceCreatePage clickInsuranceAgreement();

    @Click(CONTINUE_BUTTON)
    ElectronicPaymentInsuranceAuthotizePage clickContinueButton();
}
