package cz.moneta.test.dsl.ufo.banka.pages.loans.creditCard;

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

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

    String PLK014_S003_PAGE_LABEL_XPATH = "//div[text()='PLK014_S003']";
    String ACTIVATE_BUTTON = "PLK014_S003_B001";
    String ID_CARD_NUMBER_INPUT = "PLK014_S003_E002";
    String ID_CARD_TYPE_SELECT = "PLK014_S003_C001";

    @Select(ID_CARD_TYPE_SELECT)
    PLK014_S003_CreditCardActivationPage selectIdCardType(String idCardType);

    @TypeInto(clear = true, value = ID_CARD_NUMBER_INPUT)
    PLK014_S003_CreditCardActivationPage fillIdCardNumberFromStored(String idCardNumber);

    @Click(ACTIVATE_BUTTON)
    PLK014_S003_CardActivationPageTransitions clickActivateCard();
}