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

import cz.moneta.test.dsl.ufo.banka.pages.cards.debit.POZ002_S002_Change3dSecureRetailDebitCard;
import cz.moneta.test.harness.context.StoreAccessor;
import cz.moneta.test.harness.support.web.*;

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

    String ADC018_S001_PAGE_LABEL_XPATH = "//div[text()='ADC018_S001']";
    String O2_OPERATOR_RADIO = "ADC018_S001_R001_1";
    String PRODUCT_TO_CHANGE_3D_SECURE_NUMBER_XPATH = "//table[@id='ADC018_S001_G003_UfoTable']//td[contains(text(), '%s')]";
    String SEND_BUTTON = "ADC018_S001_B001";

    @Click(O2_OPERATOR_RADIO)
    ADC018_S001_EditOfMobileNumForAdcAndCreditCardPage clickO2Operator();

    @Click(value = PRODUCT_TO_CHANGE_3D_SECURE_NUMBER_XPATH, isStringDynamicXpath = true, by = Lookup.XPATH)
    ADC018_S001_EditOfMobileNumForAdcAndCreditCardPage clickProductToChange3dSecureNum(String cardNumber);

    @Click(SEND_BUTTON)
    @AcceptAlert(waitSecondsForAlert = 5)
    POZ002_S002_Change3dSecureRetailDebitCard clickSend();
}