package cz.moneta.test.dsl.fortelight.components;

import cz.moneta.test.dsl.fortelight.pages.portal.LogPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.fortelight.components.PortalMenu.CONTROL_MENU_UL;

@Wait(CONTROL_MENU_UL)
public interface PortalMenu extends Builder {
    String SIDE_BLOCK_DIV = "//div[@class='side-block']";
    String CONTROL_MENU_UL = SIDE_BLOCK_DIV + "//ul[@class='control menu']";
    String PARTITION_DIV = SIDE_BLOCK_DIV + "//div[@class='partition']";

    String LOGS_LINK = PARTITION_DIV + "//a[@href='/portal/log/']";

    @Wait(value = LOGS_LINK, by = Lookup.XPATH, explicitWaitSeconds = 3)
    @Click(LOGS_LINK)
    LogPage clickLogsLink();
}