package cz.moneta.test.dsl.ufo.operations.shared.topmenu;

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

import static cz.moneta.test.dsl.ufo.operations.shared.SharedElements.LOAD_IMG_DIV_CLASS;

public interface XXX702_Requirements<T extends WebFlow<T>> extends WebFlow<T>, StoreAccessor {

    String REQUIREMENT_DATE = "XXX702_T001_L286-1";

    String REFRESH_REQ_BUTTON = "XXX702_T001_B001";

    @Wait(value = REQUIREMENT_DATE, until = Until.VISIBLE)
    @GetElementContent(REQUIREMENT_DATE)
    String getRequirementDate();

    @Wait(value = REFRESH_REQ_BUTTON, until = Until.VISIBLE)
    @Click(value = REFRESH_REQ_BUTTON, andWait = @Wait(value = LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE))
    XXX702_Requirements<T> clickRefreshRequirement();

}