package cz.moneta.test.dsl.ib.settings.ib.limit;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.TypeInto;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.settings.ib.limit.IbChangeLimitPage.DAILY_LIMIT;
import static cz.moneta.test.dsl.ib.settings.ib.limit.IbChangeLimitPage.WEEKLY_LIMIT;

@Wait({DAILY_LIMIT, WEEKLY_LIMIT})
public interface IbChangeLimitPage extends IbPageFlow<IbChangeLimitPage> {
    String DAILY_LIMIT = "//input[@id = 'channelLimitDaily']";
    String WEEKLY_LIMIT = "//input[@id = 'channelLimitWeekly']";

    String CONTINUE_BTN = "//img[@alt = 'Pokračovat']";

    @TypeInto(DAILY_LIMIT)
    IbChangeLimitPage setDailyLimit(int limit);

    @Click(CONTINUE_BTN)
    IbConfirmLimitPage continueToConfirmPage();
}
