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

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

@Wait(value = {ZKL421_S001_ClientCard.SAVE_BUTTON, ZKL421_S001_ClientCard.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface ZKL421_S001_ClientCard extends WebFlow<ZKL421_S001_ClientCard> {
    String SAVE_BUTTON = "ZKL421_S001_B011";
    String DONE_BUTTON = "ZKL421_S001_H002_1";
    String CHECKED_DONE_BUTTON = "//input[@name='ZKL421_S001_H002' and @value='1']";
    String NEXT_PAGE_BUTTON = "ZKL421_S001_B021";

    @Click(value = DONE_BUTTON, andWait = @Wait(value = CHECKED_DONE_BUTTON, by = Lookup.XPATH, until = Until.VISIBLE))
    ZKL421_S001_ClientCard clickDoneButton();

    @Click(NEXT_PAGE_BUTTON)
    KOM475_S001_EssRevisionProposalPage clickNextPage();

}
