package cz.moneta.test.dsl.ufo.banka.pages.inkaso;

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.INK001_OBR001_004_IsDocumentedSignedCorrectlyPage;
import cz.moneta.test.dsl.ufo.banka.pages.loans.creditCard.INK001_CreditCardCollectionListPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.inkaso.INK001_S004_InkasoAgreedAssignmentPage.INK001_S004_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.inkaso.INK001_S004_InkasoAgreedAssignmentPage.PRICE_LIMIT;

@Wait(value = INK001_S004_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait(value = PRICE_LIMIT, waitSecondsForElement = 40)
public interface INK001_S004_InkasoAgreedAssignmentPage extends WebFlow<INK001_S004_InkasoAgreedAssignmentPage> {
    String INK001_S004_PAGE_LABEL_XPATH = "//div[text()='INK001_S004']";
    String PRICE_LIMIT = "INK001_S004_E007";
    String SAVE_BUTTON = "INK001_S004_B003";
    String BACK_BUTTON = "INK001_S004_B001";

    @TypeInto(PRICE_LIMIT)
    INK001_S004_InkasoAgreedAssignmentPage fillPriceLimitInput(String priceLimit);

    @Click(SAVE_BUTTON)
    INK001_OBR001_004_IsDocumentedSignedCorrectlyPage clickSaveButton();

    @Click(BACK_BUTTON)
    INK001_CreditCardCollectionListPage clickBack();

    @Click(SAVE_BUTTON)
    TIS013_SelectDispositions clickSaveContinueToSelectDisposition();

}
