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

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

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

    String ACCOUNT_SELECT = "//select[@name='insuranceAccount']";
    String HEALTH_CONDITION_CONFIRMATION = "//input[@value='A']";
    String LICENCE_AGREEMENT_CHECKBOX = "//input[@name='insuranceAccept1']";
    String INSURANCE_AGREEMENT_CHECKBOX = "//input[@name='insuranceAccept2']";
    String CONTINUE_BUTTON_XPATH = "//img[@alt='Pokračovat']";

    @Click(ACCOUNT_SELECT)
    PaymentsAndExpensesCreatePage clickAccountSelect();

    @Click(HEALTH_CONDITION_CONFIRMATION)
    PaymentsAndExpensesCreatePage clickHealthCOnditionConfirmation();

    @Click(LICENCE_AGREEMENT_CHECKBOX)
    PaymentsAndExpensesCreatePage clickLicenceAgreement();

    @Click(INSURANCE_AGREEMENT_CHECKBOX)
    PaymentsAndExpensesCreatePage clickInsuranceAgreement();

    @Click(CONTINUE_BUTTON_XPATH)
    PaymentsAndExpensesAuthorizePage clickContinueButton();
}