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

import cz.moneta.test.dsl.ufo.cb.landing.AUT402_S001_KOCriteriaListPage;
import cz.moneta.test.harness.support.web.*;

@Wait(value = {KOM461_S001_Rating.CLASSIFICATION, KOM461_S001_Rating.NEXT_PAGE_BUTTON}, until = Until.VISIBLE)
public interface KOM461_S001_Rating extends WebFlow<KOM461_S001_Rating> {
    String CLASSIFICATION = "KOM461_S001_B005";
    String DONE_BUTTON = "KOM461_S001_H001_1";
    String CHECKED_DONE_BUTTON = "//input[@name='KOM461_S001_H001' and @value='1']";
    String NEXT_PAGE_BUTTON = "KOM461_S001_S001";

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

    @Click(NEXT_PAGE_BUTTON)
    AUT402_S001_KOCriteriaListPage clickNextPage();

}
