package cz.moneta.test.dsl.hypos.pages.contract.lifeinsurance;

import cz.moneta.test.dsl.hypos.pages.HyposPageFlow;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Select;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.hypos.pages.contract.lifeinsurance.LifeInsuranceEditPage.LIFE_INSURANCE_FORM;


@Wait({LIFE_INSURANCE_FORM})
public interface LifeInsuranceEditPage extends HyposPageFlow<LifeInsuranceEditPage> {
    String LIFE_INSURANCE_FORM = "//form[@name='frm']";
    String LIFE_INSURANCE_STATE_SELECT = LIFE_INSURANCE_FORM + "//select[@id='state_']";
    String SAVE_LIFE_INSURANCE_BUTTON = LIFE_INSURANCE_FORM + "//input[@value='Uložit']";

    @Select(LIFE_INSURANCE_STATE_SELECT)
    LifeInsuranceEditPage selectLifeInsuranceState(String lifeInsuranceState);

    @Click(SAVE_LIFE_INSURANCE_BUTTON)
    LifeInsuranceDetailPage clickSaveLifeInsuranceButton();
}