package cz.moneta.test.dsl.ufo.banka.pages.cards.debit;

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.OBR001_S001_PrintInstructionPage;
import cz.moneta.test.dsl.ufo.banka.pages.fon.TIS050_S001_SignerSelectionPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.cards.debit.PLK013_S001_GeneratePinPage.PLK013_S001_PAGE_LABEL_XPATH;

@Wait(value = PLK013_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 40)
public interface PLK013_S001_GeneratePinPage extends WebFlow<PLK013_S001_GeneratePinPage> {
    String PLK013_S001_PAGE_LABEL_XPATH = "//div[text()='PLK013_S001']";
    String PIN_ON_MOBILE_NUMBER_RADIO = "PLK013_S001_R002";
    String GET_MOBILE_NUMBER_FROM_CIF_RADIO = "PLK013_S001_H001_1";
    String SAVE_BUTTON = "PLK013_S001_B003";

    @Click(PIN_ON_MOBILE_NUMBER_RADIO)
    PLK013_S001_GeneratePinPage clickPinOnMobileNumber();

    @Click(GET_MOBILE_NUMBER_FROM_CIF_RADIO)
    PLK013_S001_GeneratePinPage clickMobileNumberFromCif();

    @Click(value = SAVE_BUTTON)
    TIS050_S001_SignerSelectionPage clickSaveOnSignerSelectionPage();

    @Click(value = SAVE_BUTTON)
    OBR001_S001_PrintInstructionPage clickSaveOnPrintInstructionPage();
}