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.TIS027_OBR001_PreContractualInformationPage.OBR001_S001_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.TIS027_OBR001_PreContractualInformationPage.TIS027_OBR002_001_PAGE_LABEL_XPATH;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, TIS027_OBR002_001_PAGE_LABEL_XPATH}, waitSecondsForElement = 200, by = Lookup.XPATH)
public interface TIS027_OBR001_PreContractualInformationPage extends WebFlow<TIS027_OBR001_PreContractualInformationPage> {
    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String TIS027_OBR002_001_PAGE_LABEL_XPATH = "//div[contains(text(), 'TIS027_OBR002_001')]";
    String SIGNED_BUTTON = "OBR001_S001_B003";

    @Click(SIGNED_BUTTON)
    PRP002_OBR001_PrintSpecialConditionsPage clickOnSigned();

    @Click(SIGNED_BUTTON)
    TIS046_S001_DocumentsProvidedToClientPage clickOnSignedAndContinueDocumentsProvidedToClientPage();

    @Click(SIGNED_BUTTON)
    BAL021_S002_SummaryOfProductFoundationPage clickSignedGeneralAgreementAndGeneralDisposition();

    @Click(SIGNED_BUTTON)
    SPU031_S001_SavingsAccountConfirmationPage clickOnSignedAndContinueSavingsAccountConfirmationPage();

    @Click(SIGNED_BUTTON)
    TIS051_OBR001_ContractDocumentationPage clickOnSignedAndContinueToContractDocsPage();
}
