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

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.OBR001_S001_PrintInstructionPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.main.ADC012_S001_SettingADC.SETTING_ADC_PAGE_LABEL;

@Wait(value= SETTING_ADC_PAGE_LABEL, by= Lookup.XPATH, waitSecondsForElement = 60)
public interface ADC012_S001_SettingADC extends WebFlow<ADC012_S001_SettingADC> {

    String SETTING_ADC_PAGE_LABEL = "//div[text()='ADC012_S001']";
    String SAVE_BUTTON = "ADC012_S001_B003";

    @Click(SAVE_BUTTON)
    ADC012_S001_SettingADCTransitions clickSave();

    @Click(SAVE_BUTTON)
    @AcceptAlert(waitSecondsForAlert = 5)
    ADC012_S001_SettingADCTransitions clickSaveAndAcceptAlert();

    @Click(SAVE_BUTTON)
    OBR001_S001_PrintInstructionPage clickSaveAndGoToDispositionGeneratePage();
}
