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

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

@Wait(value = {DEL401_S001_Cru.PAGE_LABEL, DEL401_S001_Cru.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface DEL401_S001_Cru extends WebFlow<DEL401_S001_Cru> {

    String PAGE_LABEL = "DEL405_S001_L005";
    String CLIENT_DETAIL = "DEL401_S001_B004";
    String DONE_BUTTON = "DEL401_S001_H001_1";
    String CHECKED_DONE_BUTTON = "//input[@name='DEL401_S001_H001' and @value='1']";
    String NEXT_PAGE_BUTTON = "DEL405_S001_S001";

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

    @Click(NEXT_PAGE_BUTTON)
    MOD402_S001_Modelation clickNextPage();

}
