package cz.moneta.test.dsl.ufo.banka.pages.main;

import cz.moneta.test.dsl.ufo.banka.pages.insurance.FLO011_S001_EditExpresInsurancePage;
import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.main.HPO011_S001_ExpresDetailPage.INSURANCE_DETAIL_CHECK_ELEMENT;

@Wait(value = INSURANCE_DETAIL_CHECK_ELEMENT, waitSecondsForElement = 40)

public interface HPO011_S001_ExpresDetailPage extends WebFlow<HPO011_S001_ExpresDetailPage> {

    String INSURANCE_DETAIL_CHECK_ELEMENT = "XXX001_T001_L005";
    String DETAIL_BUTTON_EXPRES = "HPO011_S001";
    String EDIT_BUTTON_INSURANCE = "HPO011_S001_B001";
    String SERVICE_CREDIT_BUTTON = "HPO014_S001_I004";
    String EDIT_BUTTON_INSURANCE_PLUS = "HPO014_S001_B001";

    @CheckElementPresent(INSURANCE_DETAIL_CHECK_ELEMENT)
    HPO011_S001_ExpresDetailPage checkElementModel();

    @Click(DETAIL_BUTTON_EXPRES)
    HPO011_S001_ExpresDetailPage clickExpresDetail();

    @Click(EDIT_BUTTON_INSURANCE)
    FLO011_S001_EditExpresInsurancePage clickEditIns();

    @Click(SERVICE_CREDIT_BUTTON)
    HPO011_S001_ExpresDetailPage clickServiceCredit();

    @Click(EDIT_BUTTON_INSURANCE_PLUS)
    FLO011_S001_EditExpresInsurancePage clickEditInsurancePlus();

}