package cz.moneta.test.dsl.ufo.banka.pages.cards.debit;

import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.cards.debit.MBC002_S001_SettingMbcPage.*;

@Wait(value = MBC002_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 120)
public interface MBC002_S001_SettingMbcPage extends WebFlow<MBC002_S001_SettingMbcPage> {
    String MBC002_S001_PAGE_LABEL_XPATH = "//div[text()='MBC002_S001']";

    String CONTINUE_BUTTON = "MBC002_S001_B001";
    String REPAYMENT_TYPE_SELECT = "MBC002_S001_C001";
    String CREDIT_LIMIT_AMOUNT_INPUT = "MBC002_S001_E001";
    String ACCOUNT_PRO_BUSINESS_CHECK = "MBC002_S001_H002_1";

    @TypeInto(CREDIT_LIMIT_AMOUNT_INPUT)
    MBC002_S001_SettingMbcPage fillCreditLimitAmount(String creditLimitAmount);

    @Select(REPAYMENT_TYPE_SELECT)
    MBC002_S001_SettingMbcPage selectRepaymentType(String repaymentType);

    @Click(value = ACCOUNT_PRO_BUSINESS_CHECK, jsClick = true)
    MBC002_S001_SettingMbcPage checkAccountProBusiness();

    @Click(CONTINUE_BUTTON)
    MBC003_S001_BasicBusinessDataPage clickContinueToBasicBusinessDataPage();
}
