package cz.moneta.test.dsl.forte.pages.brncontrols;

import cz.moneta.test.dsl.forte.FortePageFlow;
import cz.moneta.test.dsl.forte.components.BrnControlsMenu;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.forte.pages.brncontrols.BrnControlsUniversalEnumInterface.HOME_TITLE;
import static cz.moneta.test.dsl.forte.pages.brncontrols.BrnControlsUniversalEnumInterface.TABLE_FIRST_ROW_TITLE;

/**
 * Interface for branch controls checks
 * This just check if enum table is loaded
 * Don't use it with specific work on specific enum. You can extend this interface
 */
@Wait({HOME_TITLE, TABLE_FIRST_ROW_TITLE})
public interface BrnControlsUniversalEnumInterface extends FortePageFlow<BrnControlsUniversalEnumInterface>, BrnControlsMenu {
    String HOME_TITLE = "//title[text()='Kontroly OM | FORTE ']";
    String TABLE_FIRST_ROW_TITLE = CONTENT_DIV + "//table[@class='datagrid']//tr";
}