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

import cz.moneta.test.dsl.ufo.banka.pages.cards.credit.OPN008_S001_SignContractPage;
import cz.moneta.test.dsl.ufo.banka.pages.main.BAL001_S008_SummaryStartDocumentsPage;
import cz.moneta.test.dsl.ufo.banka.pages.main.adc.HPO008_OBR001_001_InfoPage;
import cz.moneta.test.dsl.ufo.banka.pages.main.client.settings.VDB001_S001_SecondBankerJoiningPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
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.common.pages.TIS051_OBR001_ClientFinalSignatureConfirmationPage.OBR001_S001_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.TIS051_OBR001_ClientFinalSignatureConfirmationPage.TIS051_OBR001_003_PAGE_LABEL_XPATH;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, TIS051_OBR001_003_PAGE_LABEL_XPATH}, waitSecondsForElement = 200, by = Lookup.XPATH)
public interface TIS051_OBR001_ClientFinalSignatureConfirmationPage extends WebFlow<TIS051_OBR001_ClientFinalSignatureConfirmationPage> {
    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String CONTINUE_BUTTON = "OBR001_S001_B003";
    String TIS051_OBR001_003_PAGE_LABEL_XPATH = "//div[text()='TIS051_OBR001_003_(S005)']";

    @Click(CONTINUE_BUTTON)
    BAL001_S008_SummaryStartDocumentsPage clickClientAgreedAndSignedAll();

    @Click(CONTINUE_BUTTON)
    VDB001_S001_SecondBankerJoiningPage continueToSecondBankerJoiningPage();

    @Click(CONTINUE_BUTTON)
    HPO008_OBR001_001_InfoPage clickClientAgreedAndSignedAllInfo();

    @Click(CONTINUE_BUTTON)
    BAL020_OBR002_GeneralContractAndDispositionPage continueToGeneralContractAndDispositionPage();

    @Click(CONTINUE_BUTTON)
    OPN008_S001_SignContractPage continueToSignContractPage();

}
