package cz.moneta.test.dsl.ufo.banka.pages.products.sme;

import cz.moneta.test.dsl.ufo.banka.pages.fon.ZAS003_S001_ChooseLegalRepresentativePage;
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 cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.products.sme.KUL006_S001_ListOfPersonsOnRequestPage.CONTINUE_BUTTON;
import static cz.moneta.test.dsl.ufo.banka.pages.products.sme.KUL006_S001_ListOfPersonsOnRequestPage.KUL006_S001_PAGE_LABEL_XPATH;

@Wait(value = KUL006_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait(CONTINUE_BUTTON)
public interface KUL006_S001_ListOfPersonsOnRequestPage extends WebFlow<KUL006_S001_ListOfPersonsOnRequestPage> {
    String KUL006_S001_PAGE_LABEL_XPATH = "//div[text()='KUL006_S001']";

    String CONTINUE_BUTTON = "KUL006_S001_B004";
    String ADD_PERSON_BUTTON = "KUL006_S001_B003";
    String ADD_STATUTORY_AUTHORITY_BUTTON = "KUL006_S001_B010";
    String ADD_HUSBAND_WIFE_BUTTON = "KUL006_S001_B012";
    String PERSON_TO_ADD_RADIO = "KUL006_S001_G001-0";

    @Click(CONTINUE_BUTTON)
    KUL006_S001_ListOfPersonsOnRequestPageTransitions clickContinue();

    @Click(value = PERSON_TO_ADD_RADIO, jsClick = true)
    KUL006_S001_ListOfPersonsOnRequestPage selectPersonToAdd();

    @Click(ADD_PERSON_BUTTON)
    KUL016_S001_FirstDataAboutClientPage addPersonToRequest();

    @Click(ADD_STATUTORY_AUTHORITY_BUTTON)
    ZAS003_S001_ChooseLegalRepresentativePage addStatutoryAuthority();

    @Click(ADD_HUSBAND_WIFE_BUTTON)
    KUL064_S001_AddingEditingPersonPage addHusbandOrWife();
}
