package cz.moneta.test.dsl.ufo.banka.pages.po;

import cz.moneta.test.dsl.ufo.banka.pages.main.client.settings.ODS005_S001_FoEditingPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.po.ZAS001_S001_StatutoryAuthorityPage.CONTINUE_BUTTON;
import static cz.moneta.test.dsl.ufo.banka.pages.po.ZAS001_S001_StatutoryAuthorityPage.PAGE_TITLE_LABEL;
import static cz.moneta.test.dsl.ufo.banka.pages.po.ZAS001_S001_StatutoryAuthorityPage.ZAS001_S001_PAGE_LABEL_XPATH;

@Wait(value = ZAS001_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait({PAGE_TITLE_LABEL, CONTINUE_BUTTON})
public interface ZAS001_S001_StatutoryAuthorityPage extends WebFlow<ZAS001_S001_StatutoryAuthorityPage> {

    String ZAS001_S001_PAGE_LABEL_XPATH = "//div[text()='ZAS001_S001']";

    String PAGE_TITLE_LABEL = "ZAS001_S001_L003";

    String EDIT_SELECTED_STATUTORY_AUTHORITY_BUTTON = "ZAS001_S001_B003";
    String CONTINUE_BUTTON = "ZAS001_S001_B004";
    String ADD_BUTTON = "ZAS001_S001_B001";

    String STATUTORY_AUTHORITY_FIRST_SELECT = "ZAS001_S001_G001-0";

    @Click(STATUTORY_AUTHORITY_FIRST_SELECT)
    ZAS001_S001_StatutoryAuthorityPage selectFirstStatutoryAuthority();

    @Click(EDIT_SELECTED_STATUTORY_AUTHORITY_BUTTON)
    ODS005_S001_FoEditingPage continueToFoEditingPage();

    @Click(CONTINUE_BUTTON)
    ZAS001_S001_StatutoryAuthorityPageTransitions clickContinue();

    @Click(ADD_BUTTON)
    ZAS001_S001_StatutoryAuthorityPageTransitions clickAdd();
}
