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

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.insuranceofproperty.InsuranceOfPropertyCardsAndInternetRisksCreatePage.CONTINUE_BUTTON;

@Wait(CONTINUE_BUTTON)
public interface InsuranceOfPropertyCardsAndInternetRisksCreatePage extends IbPageFlow<InsuranceOfPropertyCardsAndInternetRisksCreatePage>, 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)
    InsuranceOfPropertyCardsAndInternetRisksCreatePage clickAccountSelect();

    @Click(LICENCE_AGREEMENT_CHECKBOX)
    InsuranceOfPropertyCardsAndInternetRisksCreatePage clickLicenceAgreement();

    @Click(INSURANCE_AGREEMENT_CHECKBOX)
    InsuranceOfPropertyCardsAndInternetRisksCreatePage clickInsuranceAgreement();

    @Click(CONTINUE_BUTTON)
    InsuranceOfPropertyCardsAndInternetRisksAuthotizePage clickContinueButton();
}