package cz.moneta.test.dsl.ufo.operations.ufoOperations;

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

import static cz.moneta.test.dsl.ufo.operations.shared.SharedElements.LOAD_IMG_DIV_CLASS;
import static cz.moneta.test.dsl.ufo.operations.ufoOperations.SCH706_S001_FormSelect.SELECT_FORM_BUTTON;

@Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE, waitSecondsForElement = 50)
@Wait(value = SELECT_FORM_BUTTON, waitSecondsForElement = 50)
public interface SCH706_S001_FormSelect extends WebFlow<SCH706_S001_FormSelect>, StoreAccessor {

    String SELECT_FORM_BUTTON = "SCH706_S001_B002";
    String ACCOUNT_STATEMENT_BUTTON_XPATH = "//label[contains(text(),'Potvrzení o příjmu')]/../input";
    String CONFIRMATION_OF_INTAKE_BUTTON_XPATH = "//label[contains(text(),'Výpis z BU')]/../input";

    @Click(value = ACCOUNT_STATEMENT_BUTTON_XPATH, by = Lookup.XPATH)
    @Click(value = SELECT_FORM_BUTTON)
    ACQ702_S005_ConfirmationOfIncome clickConfirmationOfIncome();

    @Click(value = CONFIRMATION_OF_INTAKE_BUTTON_XPATH, by = Lookup.XPATH)
    @Click(value = SELECT_FORM_BUTTON)
    ACQ702_S008_AccountStatement clickAccountStatement();

}
