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

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.BAL020_OBR002_GeneralContractAndDispositionPage;
import cz.moneta.test.dsl.ufo.banka.pages.products.one.click.BAL020_OBR002_PrintGeneralContractPage;
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.main.TIS051_OBR001_ContractDocumentationPage.*;

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

    @Click(CONTINUE_BUTTON)
    BAL020_OBR002_GeneralContractAndDispositionPage continueToGeneralContractAndDispositionPage();

    @Click(CONTINUE_BUTTON)
    BAL001_S008_SummaryStartDocumentsPage clickContinueSummaryStartDocumentsPage();

    @Click(CONTINUE_BUTTON)
    BAL020_OBR002_PrintGeneralContractPage continueToPrintGeneralContractPage();

    @Click(CONTINUE_BUTTON)
    TIS051_OBR001_ContractDocumentationPageTransitions clickContinue();

}
