package cz.moneta.test.dsl.ufo.ufoframework.pages.otherjarda;

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

import static cz.moneta.test.dsl.ufo.ufoframework.pages.otherjarda.REL909_S001_OtherJardaPage.PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.ufoframework.pages.otherjarda.REL909_S001_OtherJardaPage.TOP_MENU_CLASS;

/**
 * Contains all shared elements and methods over REL909_S001 pages.
 */
@Wait(value = PAGE_LABEL_XPATH, by = Lookup.XPATH)
@Wait(value = TOP_MENU_CLASS, by = Lookup.CLASSNAME)
public interface REL909_S001_OtherJardaPage extends WebFlow<REL909_S001_OtherJardaPage>, StoreAccessor {

    String PAGE_LABEL_XPATH = "//div[@id='XXX999_T001_L007' and text()='REL909_S001']";
    String TOP_MENU_CLASS = "gwt-TabLayoutPanelTabs";
    String TEST1_XPATH = "//button[text()='Test1']";
    String VALIDATION_VALUE_TYPES_XPATH = "//button[text()='Validace ValueTypes']";

    @Click(value = TEST1_XPATH, by = Lookup.XPATH)
    Test1Panel clickTest1();

    @Click(value = VALIDATION_VALUE_TYPES_XPATH, by = Lookup.XPATH)
    ValidationValueTypesPanel clickValidationValueTypes();

}
