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

import cz.moneta.test.dsl.ufo.banka.pages.inkaso.INK001_S004_InkasoAgreedAssignmentPage;
import cz.moneta.test.dsl.ufo.banka.pages.main.PSP004_S001_PrintPage;
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.INK001_OBR001_001_CreditCardStartCreateInkasoPage.INK001_OBR001_001_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.INK001_OBR001_001_CreditCardStartCreateInkasoPage.OBR001_S001_PAGE_LABEL_XPATH;

@Wait(value = {INK001_OBR001_001_PAGE_LABEL_XPATH, OBR001_S001_PAGE_LABEL_XPATH}, waitSecondsForElement = 80, by = Lookup.XPATH)
public interface INK001_OBR001_001_CreditCardStartCreateInkasoPage extends WebFlow<INK001_OBR001_001_CreditCardStartCreateInkasoPage> {
    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String OK_BUTTON = "OBR001_S001_B002";
    String INK001_OBR001_001_PAGE_LABEL_XPATH = "//div[text()='INK001_OBR001_001_(INK001_S001)']";

    @Click(OK_BUTTON)
    INK001_S004_InkasoAgreedAssignmentPage clickContinue();

    @Click(OK_BUTTON)
    PSP004_S001_PrintPage clickOkToPrint();
}
