package cz.moneta.test.dsl.ib.accountsandtransactions.templates;

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.accountsandtransactions.templates.TemplateNewBetweenAuthorizePage.SEND_BUTTON;

@Wait(value = SEND_BUTTON)
public interface TemplateNewBetweenAuthorizePage extends IbPageFlow<TemplateNewBetweenAuthorizePage>, MainMenu {
    String SMS_CODE_INPUT = "//input[@id='SMSCode']";
    String SEND_BUTTON = "//a[@id='sendBtn']";

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

    @Click(SEND_BUTTON)
    TemplateNewBetweenConfirmationPage clickSendButton();
}
