package cz.moneta.test.dsl.monetaportal.loans;

import cz.moneta.test.dsl.monetaportal.components.Naviblocks;
import cz.moneta.test.dsl.monetaportal.components.calculators.LoanCalculator;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.monetaportal.components.calculators.LoanCalculator.CALCULATOR_RESULT_SECTION_LOAN_BUTTON;

@Wait(CALCULATOR_RESULT_SECTION_LOAN_BUTTON)
public interface BridgingLoanPage extends WebFlow<BridgingLoanPage>, LoanCalculator, Naviblocks {

    //Bridging loan calculator
    String CALCULATOR_BANNER_SECTION_BUTTON = "//div[@class='col col-lg-6 col-sm-12 col-12 col-md-12 d-flex flex-column']//a[@class='btn btn-2xl btn-primary ']";
    String HYPOLOAN_BUTTON = "//a[@class='btn js-anchor btn-ghost-green ' and @href='/pujcky-a-uvery/hypopujcka-pro-bydleni']";

    @Click(CALCULATOR_BANNER_SECTION_BUTTON)
    BridgingLoanPage clickBridgingCalculatorSection();

    @Click(HYPOLOAN_BUTTON)
    HypoLoanPage clickHypoLoanPage();
}