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

import cz.moneta.test.dsl.fortelight.pages.MyPage;
import cz.moneta.test.harness.support.web.Builder;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

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

@Wait(CONTROL_MENU_UL)
public interface HomePageMenu extends Builder {
    String SIDE_BLOCK_DIV = "//div[@class='side-block']";
    String CONTROL_MENU_UL = SIDE_BLOCK_DIV + "//ul[@class='control menu']";
    String MY_PROFILE = CONTROL_MENU_UL + "//a[@href='/portal/my/']";

    @Click(MY_PROFILE)
    MyPage clickMyProfile();
}
