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

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

public interface StandingOrderConfirmationPage extends IbPageFlow<StandingOrderConfirmationPage>, MainMenu, AccountsAndTransactionsSubmenu {
    String SIGN_BUTTON = "//a[@id='sendToSign']";
    String SMS_CODE_IPUT = "//input[@id='SMSCode']";
    String SEND_BUTTON = "//a[@id='sendBtn']";

    @Click(SIGN_BUTTON)
    StandingOrderConfirmationPage clickSign();

    @TypeInto(SMS_CODE_IPUT)
    StandingOrderConfirmationPage typeSmsCode(String smsCode);

    @Click(SEND_BUTTON)
    StandingOrderAuthorizePage clickSend();
}
