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_ExpresDetailInsurancePage.INSURANCE_DETAIL_CHECK_ELEMENT;


@Wait(value = INSURANCE_DETAIL_CHECK_ELEMENT, waitSecondsForElement = 40)
public interface HPO011_S001_ExpresDetailInsurancePage extends WebFlow<HPO011_S001_ExpresDetailInsurancePage>  {

    String INSURANCE_DETAIL_CHECK_ELEMENT = "HPO011_S001_L002";
    String CANCEL_BUTTON_INSURANCE = "HPO011_S001_B001";

    @CheckElementPresent(INSURANCE_DETAIL_CHECK_ELEMENT)
    HPO011_S001_ExpresDetailInsurancePage checkElementModel();

    @Click(CANCEL_BUTTON_INSURANCE)
    FLO011_S001_EditExpresInsurancePage clickCancelInsurance();
}
