package cz.moneta.test.dsl.ib.loans.expressloan.loanSummary;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.loans.expressloan.signLoan.IbPreContractExpressLoanPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.loans.expressloan.loanSummary.IbInsuranceExpressLoanPage.TO_INSURE;

@Wait(TO_INSURE)
public interface IbInsuranceExpressLoanPage extends IbPageFlow<IbInsuranceExpressLoanPage> {
    String TO_INSURE = "//button[text() = 'Pojistit se']";

    @Wait(TO_INSURE)
    @Click(TO_INSURE)
    IbPreContractExpressLoanPage toInsure();
}