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

import cz.moneta.test.dsl.monetaportal.components.Naviblocks;
import cz.moneta.test.dsl.monetaportal.components.calculators.BusinessLoanCalculator;
import cz.moneta.test.dsl.monetaportal.more.ExpressBusinessWizard;
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.loans.BusinessLoanPage.CALCULATOR_APPROVE_ONLINE_BUTTON;

@Wait(CALCULATOR_APPROVE_ONLINE_BUTTON)
public interface BusinessLoanPage extends WebFlow<BusinessLoanPage>, BusinessLoanCalculator, Naviblocks, ExpressBusinessWizard {

    //Business loan calculator
    String CALCULATOR_BANNER_SECTION_BUTTON = "//div[@class='b-product-claim__text-side']//a[@class='btn btn-primary ']";
    String CALCULATOR_DIV = "//div[@id='PersonalLoanCalculator_INSTANCE_XpGpIBXXDICl-react-root']";
    String CALCULATOR_APPROVE_ONLINE_BUTTON = CALCULATOR_DIV + "//a[@class='btn btn-tertiary sc-bdVaJa gRrvFh']";

    @Click(CALCULATOR_BANNER_SECTION_BUTTON)
    BusinessLoanPage clickBusinessCalculatorSection();
}