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

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.insurance.KUL040_S001_EditExpresBusinesInsurancePage.KOMEX_EDIT_CHECK_ELEMENT;

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

    String KOMEX_EDIT_CHECK_ELEMENT = "XXX001_T001_L005";
    String ADD_COMEX_BUTTON = "KUL040_S001_R001_0";
    String INVALID_CHECK_BUTTON = "KUL040_S001_R002_0";
    String CONFIRM_CHANGE_KOMEX ="KUL040_S001_B003";
    String KOMEX_TERMINATION_BUTTON ="KUL040_S001_R001_1";

    @CheckElementPresent(KOMEX_EDIT_CHECK_ELEMENT)
    KUL040_S001_EditExpresBusinesInsurancePage checkElementModel();

    @Click(ADD_COMEX_BUTTON)
    KUL040_S001_EditExpresBusinesInsurancePage clickAddKomexButton();

    @Click(INVALID_CHECK_BUTTON)
    KUL040_S001_EditExpresBusinesInsurancePage clickInvalidCheckButton();

    @Click(CONFIRM_CHANGE_KOMEX)
    XXX001_T001_SelectDocumentSignedPage clickConfirmChangeKomex();

    @Click(CONFIRM_CHANGE_KOMEX)
    XXX001_T001_L005_KomexChangeVictoryPage clickConfirmChangeCancelKomex();

    @Click(KOMEX_TERMINATION_BUTTON)
    KUL040_S001_EditExpresBusinesInsurancePage clickKomexTerminationButton();

}