package cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.CONTINUE_BUTTON;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.COUNTRY_SELECT;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.DESCRIPTIVE_NUMBER;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.DIFFERENT_CONTACT_ADDRESS;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.ORIENTATION_NUMBER;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.STAY_SINCE_SELECT;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.STREET;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanPermanentResidenceAndContactAddressPage.TOWN;

@Wait(value = {STREET, DESCRIPTIVE_NUMBER, ORIENTATION_NUMBER, TOWN, COUNTRY_SELECT, STAY_SINCE_SELECT, DIFFERENT_CONTACT_ADDRESS, CONTINUE_BUTTON}, by = Lookup.ID)
public interface IbExpressLoanPermanentResidenceAndContactAddressPage extends IbPageFlow<IbExpressLoanPermanentResidenceAndContactAddressPage> {
    String STREET = "street";
    String DESCRIPTIVE_NUMBER = "descriptiveNumber";
    String ORIENTATION_NUMBER = "orientationNumber";
    String ZIP = "zip";
    String TOWN = "town";
    String COUNTRY_SELECT = "country";
    String STAY_SINCE_SELECT = "staySince";
    String DIFFERENT_CONTACT_ADDRESS = "differentContactAddress";

    String CONTINUE_BUTTON = "continueButton";

    @Wait(value = CONTINUE_BUTTON, by = Lookup.ID)
    @Click(value = CONTINUE_BUTTON, by = Lookup.ID)
    IbExpressLoanEmploymentAndIncomeExpenses continueToEmploymentAndIncomeExpenses();
}