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

import cz.moneta.test.dsl.fortelight.ForteLightPageFlow;
import cz.moneta.test.dsl.fortelight.components.HomePageMenu;
import cz.moneta.test.dsl.fortelight.pages.attendance.TimesheetPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.fortelight.pages.MyPage.TOP_LINKS_DIV;

@Wait(TOP_LINKS_DIV)
public interface MyPage extends ForteLightPageFlow<MyPage>, HomePageMenu {
    String CONTENT_DIV = "//div[@class='content_data']";
    String TOP_LINKS_DIV = CONTENT_DIV + "//div[@id='topLinks']";
    String ATTENDANCE_ICON = TOP_LINKS_DIV + "//a[@title='Docházka zaměstnance']";

    @Click(ATTENDANCE_ICON)
    TimesheetPage clickAttendanceIcon();
}
