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

import cz.moneta.test.dsl.ufo.banka.pages.insurance.KUL040_S001_EditExpresBusinesInsurancePage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.main.HPO021_S001_ExpresBusinessDetailPage.PAGE_LABEL_XPATH;

@Wait(value = PAGE_LABEL_XPATH, waitSecondsForElement = 40, by = Lookup.XPATH)
public interface HPO021_S001_ExpresBusinessDetailPage extends WebFlow<HPO021_S001_ExpresBusinessDetailPage> {

    String PAGE_LABEL_XPATH = "//div[text()='HPO021_S001']";
    String RETURN_TO_HKO = "HPO021_S001_B012";
    String INSURANCE_KOMEX_DETAIL_CHECK_ELEMENT = "HPO021_S001_L010";
    String EDIT_BUTTON_KOMEX = "HPO021_S001_B017";
    String ACCOUNT_STATE_DIV = "HPO021_S001_L001";
    String LIMITS_CREDIT_DIV = "HPO021_S001_L021";
    String INTEREST_RATE_DIV = "HPO021_S001_L004";
    String ANNUITY_PAYMENTS_DIV = "HPO021_S001_L041";
    String SUMMARY_MONTHLY_PAYMENT_DIV = "HPO021_S001_L012";
    String PAYMENTS_COUNT_DIV = "HPO021_S001_L024";

    @Click(RETURN_TO_HKO)
    HKO101_S001_MainClientPage clickBackToHKO();

    @CheckElementContent(ACCOUNT_STATE_DIV)
    HPO021_S001_ExpresBusinessDetailPage checkAccountState(String accountState);

    @CheckElementContent(LIMITS_CREDIT_DIV)
    HPO021_S001_ExpresBusinessDetailPage checkLimitsCredit(String limitsCredit);

    @CheckElementContent(INTEREST_RATE_DIV)
    HPO021_S001_ExpresBusinessDetailPage checkInterestRate(String interestRate);

    @CheckElementContent(ANNUITY_PAYMENTS_DIV)
    HPO021_S001_ExpresBusinessDetailPage checkAnnuityPayments(String annuityPayments);

    @CheckElementContent(SUMMARY_MONTHLY_PAYMENT_DIV)
    HPO021_S001_ExpresBusinessDetailPage checkMonthlyPayment(String monthlyPayment);

    @CheckElementContent(PAYMENTS_COUNT_DIV)
    HPO021_S001_ExpresBusinessDetailPage checkPaymentsCount(String paymentsCount);

    @CheckElementPresent(INSURANCE_KOMEX_DETAIL_CHECK_ELEMENT)
    HPO021_S001_ExpresBusinessDetailPage checkElementModel();

    @Click(EDIT_BUTTON_KOMEX)
    KUL040_S001_EditExpresBusinesInsurancePage clickEditInsuranceKomex();

}