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

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.paymentsandexpenses.PaymentsAndExpensesAuthorizePage.SEND_BUTTON;

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

    String SMS_CODE_INPUT = "//input[@name='SMSCode']";
    String SEND_BUTTON = "//a[@id='sendBtn']";

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

    @Click(SEND_BUTTON)
    PaymentsAndExpensesConfirmationPage clickSend();
}
