package cz.moneta.test.dsl.ib.cards.application.contract;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.cards.CardsVerticalMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.cards.application.contract.PrepareContractPage.PAGE_NAME;

@Wait(PAGE_NAME)
public interface PrepareContractPage extends IbPageFlow<PrepareContractPage>, CardsVerticalMenu {

    String PAGE_NAME = "//*[@id=\"x31809652\"]/span/b[text()='Předsmluvní informace']";

    @Click("//input[@type='checkbox' and @name='confirm']")
    PrepareContractPage clickConfirm();

    @Click("//*[@id=\"x31809652\"]/table[2]/tbody/tr[4]/td[2]/img")
    ReviewContractPage clickAgreeAndContinueToReview();
}
