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

import cz.moneta.test.dsl.ufo.banka.pages.main.BAL021_S002_SummaryOfProductFoundationPage;
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.BAL020_OBR002_GeneralContractAndDispositionPage.BAL020_OBR002_001_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.BAL020_OBR002_GeneralContractAndDispositionPage.OBR001_S001_PAGE_LABEL_XPATH;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, BAL020_OBR002_001_PAGE_LABEL_XPATH}, waitSecondsForElement = 40, by = Lookup.XPATH)
public interface BAL020_OBR002_GeneralContractAndDispositionPage extends WebFlow<BAL020_OBR002_GeneralContractAndDispositionPage> {
    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String BAL020_OBR002_001_PAGE_LABEL_XPATH = "//div[text()='BAL020_OBR002_001']";
    String SIGNED_BUTTON = "OBR001_S001_B003";

    @Click(SIGNED_BUTTON)
    BAL021_S002_SummaryOfProductFoundationPage continueToSummaryPage();

    @Click(SIGNED_BUTTON)
    OBR001_S001_PrintInstructionPage continueToPrintInstruction();
}
