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

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.RET701_S003_AccountBenefits.VIP_EXCHANGE_RETE_LIST_XPATH;

@Wait(value = VIP_EXCHANGE_RETE_LIST_XPATH, by = Lookup.XPATH, until = Until.VISIBLE)
public interface RET701_S003_AccountBenefits extends WebFlow<RET701_S003_AccountBenefits> {

    String VIP_EXCHANGE_RETE_LIST_XPATH = "//button[contains(@title, 'RET701_S003_I005')]";
    String VIP_EXCHANGE_RETE_LIST_CHECKBOX = "RET701_S003_H001_24";
    String SET_VIP_EXCHANGE_RETE_LIST = "RET701_S003_B003";

    @Click(value = VIP_EXCHANGE_RETE_LIST_XPATH, by = Lookup.XPATH, andWait = @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE))
    RET701_S003_AccountBenefits clickVipExchangeRateList();

    @Click(VIP_EXCHANGE_RETE_LIST_CHECKBOX)
    RET701_S003_AccountBenefits clickVipExchangeRateListCheckbox();

    @Click(SET_VIP_EXCHANGE_RETE_LIST)
    RET701_S003_AccountBenefitsTransitions setVipExchangeRateList();
}