package cz.moneta.test.dsl.ufo.banka.pages.products.one.click;

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.TIS027_OBR001_PreContractualInformationPage;
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.products.one.click.BAL020_OBR002_PrintGeneralContractPage.PAGE_ID_XPATH;

@Wait(value = PAGE_ID_XPATH, by = Lookup.XPATH)
public interface BAL020_OBR002_PrintGeneralContractPage extends WebFlow<BAL020_OBR002_PrintGeneralContractPage> {

    String PAGE_ID_XPATH = "//div[text()='BAL020_OBR002_001']";
    String CONTINUE_BUTTON = "OBR001_S001_B003";

    @Click(CONTINUE_BUTTON)
    BAL021_S002_RecapitulationPage clickSignedGeneralAgreementAndDisposition();

    @Click(CONTINUE_BUTTON)
    BAL021_S002_SummaryOfProductFoundationPage clickSignedGeneralAgreementAndGeneralDisposition();

    @Click(CONTINUE_BUTTON)
    @Wait(explicitWaitSeconds = 5)
    TIS027_OBR001_PreContractualInformationPage clickSignedPrecontractualInformation();

}