package cz.moneta.test.dsl.ib.loans.flexicredit;

import cz.moneta.test.harness.support.web.Builder;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.loans.flexicredit.FlexicreditApplicationPage.CONTRACT;
import static cz.moneta.test.dsl.ib.loans.flexicredit.FlexicreditApplicationPage.FLEXICREDIT_FORM;
import static cz.moneta.test.dsl.ib.loans.flexicredit.FlexicreditApplicationPage.HEADER;
import static cz.moneta.test.dsl.ib.loans.flexicredit.FlexicreditApplicationPage.MONEY;
import static cz.moneta.test.dsl.ib.loans.flexicredit.FlexicreditApplicationPage.OFFER;
import static cz.moneta.test.dsl.ib.loans.flexicredit.FlexicreditApplicationPage.REQUEST;

@Wait({FLEXICREDIT_FORM, HEADER, OFFER, REQUEST, CONTRACT, MONEY})
public interface FlexicreditApplicationPage extends Builder {
    String FLEXICREDIT_FORM = "//div[@id = 'ib-app-flexikredit']";
    String HEADER = "//span[text() = 'Flexikredit žádost']";

    String OFFER = "//ul//span[text()='Nabídka']";
    String REQUEST = "//ul//span[text()='Žádost']";
    String CONTRACT = "//ul//span[text()='Smlouva']";
    String MONEY = "//ul//span[text()='Peníze']";

    String CONTINUE_BUTTON = "//span[text()='Pokračovat']//parent::button";
}
