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

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

@Wait(value = {KOM414_S017_Risk.SAVE_BUTTON, KOM414_S017_Risk.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface KOM414_S017_Risk extends WebFlow<KOM414_S017_Risk> {
    String SAVE_BUTTON = "KOM414_S017_B003";
    String DONE_BUTTON = "KOM414_S017_H001_1";
    String CHECKED_DONE_BUTTON = "//input[@name='KOM414_S017_H001' and @value='1']";
    String NEXT_PAGE_BUTTON = "KOM414_S017_S001";

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

    @Click(NEXT_PAGE_BUTTON)
    KOM462_S001_ClientAccounts clickNextPage();
}
