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

import cz.moneta.test.dsl.ufo.operations.ufoOperations.PSP701_S004_PrintTemplatePage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.TIS701_S004_ConfirmationOfAccountHolding.TITLE;

@Wait(value = TITLE, until = Until.VISIBLE)
public interface TIS701_S004_ConfirmationOfAccountHolding extends WebFlow<TIS701_S004_ConfirmationOfAccountHolding> {

    String TITLE = "TIS701_S004_L001";

    String SEND_BUTTON = "TIS701_S004_B001";
    String LANGUAGE_COMBOBOX = "TIS701_S004_C001";
    String FEE_COMBOBOX = "TIS701_S004_C003";
    String REASON_TEXTDIV = "TIS701_S004_M001";

    @Click(SEND_BUTTON)
    PSP701_S004_PrintTemplatePage clickSend();

    @Wait(value = LANGUAGE_COMBOBOX, until = Until.VISIBLE)
    @Select(LANGUAGE_COMBOBOX)
    TIS701_S004_ConfirmationOfAccountHolding selectLanguage(int value);

    @Wait(value = FEE_COMBOBOX, until = Until.VISIBLE)
    @Select(FEE_COMBOBOX)
    TIS701_S004_ConfirmationOfAccountHolding selectFee(int value);

    @Wait(value = REASON_TEXTDIV, until = Until.VISIBLE)
    @TypeInto(REASON_TEXTDIV)
    TIS701_S004_ConfirmationOfAccountHolding fillReason(String reason);
}
