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

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

@Wait(value = {KOV401_S001_Kovenanty.EDIT_BUTTON, KOV401_S001_Kovenanty.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface KOV401_S001_Kovenanty extends WebFlow<KOV401_S001_Kovenanty> {
    String EDIT_BUTTON = "KOV401_S001_B009";
    String DONE_BUTTON = "KOV401_S001_H001_1";
    String CHECKED_DONE_BUTTON = "//input[@name='KOV401_S001_H001' and @value='1']";
    String NEXT_PAGE_BUTTON = "KOV401_S001_S001";

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

    @Click(NEXT_PAGE_BUTTON)
    POD405_S001_ConditionsFulfilment clickNextPage();

}
