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

import cz.moneta.test.dsl.ib.IbPageFlow;
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.sipopayment.SipoOrderCreatePage.SIPO_NUMBER;

@Wait(value = SIPO_NUMBER)
public interface SipoOrderCreatePage extends IbPageFlow<SipoOrderCreatePage>{
    String CONTINUE_BUTTON = "//img[@alt='Pokračovat']";
    String FROM_ACCOUNT_SELECT = "//select[@id='fromAccount']";
    String SIPO_NUMBER ="//input[@id='vakusLinkNum']";
    String SIPO_LIMIT ="//input[@id='amount']";
    String MONTH_OF_FINAL_PAYMENT ="//input[@id='endDate']";

    @Click(FROM_ACCOUNT_SELECT)
    SipoOrderCreatePage clickFromAccountSelect();
    @TypeInto(SIPO_NUMBER)
    SipoOrderCreatePage fillSipoNumber(String sipoNumber);
    @TypeInto(SIPO_LIMIT)
    SipoOrderCreatePage fillSipoLimit(String sipoLimit);
    @TypeInto(MONTH_OF_FINAL_PAYMENT)
    SipoOrderCreatePage fillEndDate(String sipoEndDate);
    @Click(CONTINUE_BUTTON)
    SipoOrderAuthorizePage clickContinueButton();
}