package cz.moneta.test.dsl.ufo.common.landing;

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

import static cz.moneta.test.dsl.ufo.common.landing.ADM162_S001_selectPageTomcatSso.*;

@Waits({
        @Wait(value = {PAGE_ID_SELECT_PAGE, LOGIN_PANEL_ID, SELECT_APPLICATION_TABLE_ID, SELECT_OM_TABLE_ID, LIST_OM_ID, CONTINUE_BUTTON_ID}, waitSecondsForElement = 40),
        @Wait(value = CHANGE_USER_XPATH, by = Lookup.XPATH)})
public interface ADM162_S001_selectPageTomcatSso extends WebFlow<ADM162_S001_selectPageTomcatSso> {
    String PAGE_ID_SELECT_PAGE = "ADM162_S001";
    String LOGIN_PANEL_ID = "XXX009_T001_X001";
    String SELECT_APPLICATION_TABLE_ID = "ADM162_S001_G001";
    String SELECT_OM_TABLE_ID = "ADM162_S001_G002";
    String LIST_OM_ID = "ADM162_S001_B003";
    String CONTINUE_BUTTON_ID = "ADM162_S001_B004";
    String CHANGE_USER_XPATH = "//a[text()='Změna uživatele']";
    String OM_FLORA_ID = "ADM162_S001_G002-1";
    String FIRST_OM_RADIO = "ADM162_S001_G002-0";
    String OPERATIONS_RADIO = "ADM162_S001_G001-1";

    @Click(OM_FLORA_ID)
    @Click(CONTINUE_BUTTON_ID)
    void selectOmFloraAndContinue();

    @Click(FIRST_OM_RADIO)
    ADM162_S001_selectPageTomcatSso selectFirstOm();

    @Click(OPERATIONS_RADIO)
    ADM162_S001_selectPageTomcatSso selectUfoOperations();

    @Click(CONTINUE_BUTTON_ID)
    ADM162_S001_selectPageTomcatSsoTransitions clickContinueButton();
}
