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

import cz.moneta.test.dsl.ufo.banka.pages.fon.DMS070_S001_ScanDocumentsPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.income.FIN002_S003_TaxAndDiscountsPage.*;

@Wait(value = FIN002_S003_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait(CONTINUE_BUTTON)
public interface FIN002_S003_TaxAndDiscountsPage extends WebFlow<FIN002_S003_TaxAndDiscountsPage> {
    String FIN002_S003_PAGE_LABEL_XPATH = "//div[text()='FIN002_S003']";

    String CONTINUE_BUTTON = "FIN002_S003_B001";

    String TAX_TO_PAY_INPUT = "FIN002_S003_E001";
    String TAX_AFTER_DISCOUNT_INPUT = "FIN002_S003_E011";
    String INCOME_MODULE_LABEL = "FIN002_S003_L023";

    @TypeInto(TAX_AFTER_DISCOUNT_INPUT)
    FIN002_S003_TaxAndDiscountsPage fillTaxAfterDiscount(String taxAfterDiscount);

    @TypeInto(TAX_TO_PAY_INPUT)
    FIN002_S003_TaxAndDiscountsPage fillTaxToPay(String taxToPay);

    @Click(CONTINUE_BUTTON)
    DMS070_S001_ScanDocumentsPage continueToScanDocumentsPage();

    @Click(INCOME_MODULE_LABEL)
    FIN002_S003_TaxAndDiscountsPage clickOnIncomeModuleLabel();
}
