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

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.travel.ShortTermTravelInsuranceAuthorizePage.SEND_BUTTON;

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

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

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

    @Click(SEND_BUTTON)
    ShortTermTravelInsuranceConfirmationPage clickSend();
}
