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

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.SIP001_OBR001_007_DocumentConfirmationPage;
import cz.moneta.test.harness.context.StoreAccessor;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.main.SIP001_S004_CreateNewSIPOPaymentPage.SIP001_S004_PAGE_LABEL_XPATH;

@Wait(value = SIP001_S004_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 90)
@Wait(value = SIP001_S004_CreateNewSIPOPaymentPage.SIPO_NUMBER, waitSecondsForElement = 90)
public interface SIP001_S004_CreateNewSIPOPaymentPage extends WebFlow<SIP001_S004_CreateNewSIPOPaymentPage>, StoreAccessor {

    String SIP001_S004_PAGE_LABEL_XPATH = "//div[text()='SIP001_S004']";
    String SIPO_NUMBER = "SIP001_S004_E002";
    String LIMIT_AMOUNT = "SIP001_S004_E004";
    String SAVE_BUTTON = "SIP001_S004_B002";

    @TypeInto(SIPO_NUMBER)
    SIP001_S004_CreateNewSIPOPaymentPage fillSIPONumber(String sipoNumber);

    @TypeInto(LIMIT_AMOUNT)
    SIP001_S004_CreateNewSIPOPaymentPage fillLimitAmount(String limitAmount);

    @Click(SAVE_BUTTON)
    SIP001_OBR001_007_DocumentConfirmationPage clickSave();

    @Click(SAVE_BUTTON)
    PSP004_S001_PrintPage clickSaveToPrintPage();
}
