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

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

@Wait(value = {KOM443_S004_SalesEmployee.SAVE_BUTTON, KOM443_S004_SalesEmployee.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface KOM443_S004_SalesEmployee extends WebFlow<KOM443_S004_SalesEmployee> {
    String SAVE_BUTTON = "KOM443_S004_B001";
    String DONE_BUTTON = "KOM443_S004_H001_1";
    String CHECKED_DONE_BUTTON = "//input[@name='KOM443_S004_H001' and @value='1']";
    String NEXT_PAGE_BUTTON = "KOM443_S004_S001";

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

    @Click(NEXT_PAGE_BUTTON)
    KOM414_S017_Risk clickNextPage();

}
