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

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.OBR001_S001_PrintInstructionPage;
import cz.moneta.test.dsl.ufo.banka.pages.main.BAL035_S002_SummaryOfProductFoundationRetailPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.insurance.OBR001_S001_AppendixSignedPage.PAGE_ID_XPATH;

@Wait(value = PAGE_ID_XPATH, by = Lookup.XPATH, waitSecondsForElement = 120)
public interface OBR001_S001_AppendixSignedPage extends WebFlow<OBR001_S001_AppendixSignedPage> {
    String PAGE_ID_XPATH = "//div[contains(text(), 'OBR001_S001')]";

    String APPENDIX_SIGNATURE_CONFIG_CHECK_ELEMENT = "OBR001_S001_L002";
    String APPENDIX_CONFIG_BUTTON = "OBR001_S001_B001";
    String CONTINUE_BUTTON = "OBR001_S001_B002";
    String NO_BUTTON = "OBR001_S001_B003";

    @CheckElementPresent(APPENDIX_SIGNATURE_CONFIG_CHECK_ELEMENT)
    OBR001_S001_AppendixSignedPage checkElementModel();

    @Click(APPENDIX_CONFIG_BUTTON)
    OBR001_S001_L002_InsuranceChangeVictoryPage clickAppendixConfigButton();

    @Click(NO_BUTTON)
    OBR001_S001_PrintInstructionPage clickNoButton();

    @Click(CONTINUE_BUTTON)
    BAL035_S002_SummaryOfProductFoundationRetailPage clickContinueToSummaryOfProduct();
}
