package cz.moneta.test.dsl.ufo.banka.pages.products.current.account;

import cz.moneta.test.dsl.ufo.banka.pages.cards.debit.OBR003_S001_ClientContractSignPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.products.current.account.BPP001_S001_DocumentationSendPage.*;

@Wait(value = BPP001_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 180)
@Wait({PRINT_DOCUMENTS_BUTTON, SEND_DOCUMENTS_BUTTON})
public interface BPP001_S001_DocumentationSendPage extends WebFlow<BPP001_S001_DocumentationSendPage> {
    String BPP001_S001_PAGE_LABEL_XPATH = "//div[text()='BPP001_S001']";
    String PRINT_DOCUMENTS_BUTTON = "BPP001_S001_B002";
    String SEND_DOCUMENTS_BUTTON = "BPP001_S001_B003";

    String EMAIL_INPUT = "BPP001_S001_E001";

    @TypeInto(value = EMAIL_INPUT, clear = true)
    @KeyPress(Key.TAB)
    BPP001_S001_DocumentationSendPage fillEmail(String email);

    @Click(SEND_DOCUMENTS_BUTTON)
    OBR003_S001_ClientContractSignPage sendDocumentsToClient();
}
