package cz.moneta.test.dsl.ufo.banka.pages.income;

import cz.moneta.test.dsl.ufo.banka.pages.main.HKO101_S001_MainClientPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.income.FIN001_S001_FinancialIncomeSummaryPage.ADD_FINANCIAL_INCOME_BUTTON;
import static cz.moneta.test.dsl.ufo.banka.pages.income.FIN001_S001_FinancialIncomeSummaryPage.FIN001_S001_PAGE_LABEL_XPATH;

@Wait(value = FIN001_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait(ADD_FINANCIAL_INCOME_BUTTON)
public interface FIN001_S001_FinancialIncomeSummaryPage extends WebFlow<FIN001_S001_FinancialIncomeSummaryPage> {
    String FIN001_S001_PAGE_LABEL_XPATH = "//div[text()='FIN001_S001']";

    String BACK_BUTTON = "FIN001_S001_B001";
    String ADD_FINANCIAL_INCOME_BUTTON = "FIN001_S001_B002";

    @Click(ADD_FINANCIAL_INCOME_BUTTON)
    FIN002_S002_FinancialIncomePage clickAddFinancialStatement();

    @Click(BACK_BUTTON)
    HKO101_S001_MainClientPage backToMainClientPage();
}
