package cz.moneta.test.dsl.ib.insurance.electronicpayment;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.components.MainMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.TypeInto;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.insurance.electronicpayment.ElectronicPaymentInsuranceAuthotizePage.SEND_BUTTON;

@Wait(SEND_BUTTON)
public interface ElectronicPaymentInsuranceAuthotizePage extends IbPageFlow<ElectronicPaymentInsuranceAuthotizePage>, MainMenu {

    String SMS_CODE_INPUT = "//input[@name='mobileKey']";
    String SEND_BUTTON = "//a[@id='btnVerify']";

    @TypeInto(SMS_CODE_INPUT)
    ElectronicPaymentInsuranceAuthotizePage typeSmsCode(String smsCode);

    @Click(SEND_BUTTON)
    ElectronicPaymentInsuranceConfirmationPage clickSend();
}
