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

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

import static cz.moneta.test.dsl.ufo.banka.pages.ib.ADC047_S001_IbSettingsPage.PAGE_LABEL;

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

    String PAGE_LABEL = "ADC047_S001_L001";
    String ACTIVE_OPERATION_RADIO = "ADC047_S001_R001_13";
    String PASSIVE_OPERATION_RADIO = "ADC047_S001_R001_4";
    String DAILY_LIMIT_INPUT = "ADC047_S001_E002";
    String WEEKLY_LIMIT_INPUT = "ADC047_S001_E005";
    String CONTINUE_BUTTON = "ADC047_S001_X031";
    String MODAL_WARNING_CONTINUE_BUTTON = "ADC047_S001_B005";

    @Click(value = ACTIVE_OPERATION_RADIO, jsClick = true)
    ADC047_S001_IbSettingsPage clickActiveOperation();

    @Click(value = PASSIVE_OPERATION_RADIO, jsClick = true)
    ADC047_S001_IbSettingsPage clickPassiveOperation();

    @TypeInto(DAILY_LIMIT_INPUT)
    ADC047_S001_IbSettingsPage fillDailyLimit(String dailyLimit);

    @TypeInto(WEEKLY_LIMIT_INPUT)
    ADC047_S001_IbSettingsPage fillWeeklyLimit(String weeklyLimit);

    @Click(CONTINUE_BUTTON)
    ADC047_S001_IbSettingsPage clickContinue();

    @Click(MODAL_WARNING_CONTINUE_BUTTON)
    ADC047_S001_IbSettingsPageTransitions clickModalWarningContinue();

}
