package cz.moneta.test.dsl.ufo.banka.pages.cards.debit;

import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.cards.debit.MBC003_S001_BasicBusinessDataPage.*;

@Wait(value = MBC003_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 120)
@Wait(CONTINUE_BUTTON)
public interface MBC003_S001_BasicBusinessDataPage extends WebFlow<MBC003_S001_BasicBusinessDataPage> {
    String MBC003_S001_PAGE_LABEL_XPATH = "//div[text()='MBC003_S001']";

    String CONTINUE_BUTTON = "MBC003_S001_B001";
    String CONSENTS_CHECK = "MBC003_S001_H001_1";

    String BUSINESS_NAME_INPUT = "MBC003_S001_E001";
    String DIC_INPUT = "MBC003_S001_E004";
    String STREET_INPUT = "MBC003_S001_E005";

    String CITY_INPUT_XPATH = "//*[@id='MBC003_S001_X029']/div[2]/input[2]";
    String STREET_INPUT_XPATH = "//*[@id='MBC003_S001_X020']/div[2]/input[2]";

    @Click(value = CONSENTS_CHECK, jsClick = true)
    MBC003_S001_BasicBusinessDataPage checkConsents();

    @TypeInto(value = BUSINESS_NAME_INPUT, clear = true)
    MBC003_S001_BasicBusinessDataPage fillBusinessName(String businessName);

    @TypeInto(value = DIC_INPUT, clear = true)
    MBC003_S001_BasicBusinessDataPage fillDic(String dic);

    @TypeInto(value = STREET_INPUT)
    @Click(BUSINESS_NAME_INPUT)
    MBC003_S001_BasicBusinessDataPage fillBusinessStreet(String street);

    @Click(value = CONTINUE_BUTTON, jsClick = true)
    MBC004_S001_ComplementaryBusinessDataPage clickContinueToComplementaryBusinessDataPage();
}
