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

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

import static cz.moneta.test.dsl.hypos.pages.contract.lifeinsurance.LifeInsurancePage.PAGE_TITLE;


@Wait(PAGE_TITLE)
public interface LifeInsurancePage extends HyposPageFlow<LifeInsurancePage>, Menu {
    String PAGE_TITLE = "//h1[text()='Životní pojištění']";
    String LIFE_INSURANCE_DETAIL_BUTTON = "//table//a[contains(@href,'lifeInsurance.php?cmd=insurance.overview')]";

    @Click(LIFE_INSURANCE_DETAIL_BUTTON)
    LifeInsuranceDetailPage clickLifeInsuranceDetailButton();
}