package cz.moneta.test.dsl.ufo.cb.landing.proposal.pages;

import cz.moneta.test.harness.support.web.*;

@Wait(value = {POD405_S001_ConditionsFulfilment.PRINT_BUTTON, POD405_S001_ConditionsFulfilment.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface POD405_S001_ConditionsFulfilment extends WebFlow<POD405_S001_ConditionsFulfilment> {
    String PRINT_BUTTON = "POD405_S001_B008";
    String DONE_BUTTON = "POD405_S001_H001_1";
    String CHECKED_DONE_BUTTON = "//input[@name='POD405_S001_H001' and @value='1']";
    String NEXT_PAGE_BUTTON = "POD405_S001_S001";

    @Click(value = DONE_BUTTON, andWait = @Wait(value = CHECKED_DONE_BUTTON, by = Lookup.XPATH))
    POD405_S001_ConditionsFulfilment clickDoneButton();

    @Click(NEXT_PAGE_BUTTON)
    POD406_S001_DealConditions clickNextPage();

}
