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

import cz.moneta.test.dsl.ufo.operations.shared.SharedElements;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.products.current.account.ZPL006_S004_EditSmoothPaymentPage.PAGE_LABEL_XPATH;

@Wait(value = PAGE_LABEL_XPATH, by = Lookup.XPATH)
public interface ZPL006_S004_EditSmoothPaymentPage extends WebFlow<ZPL006_S004_EditSmoothPaymentPage> {

    String PAGE_LABEL_XPATH = "//div[text()='ZPL006_S004']";
    String AMOUNT_INPUT = "ZPL006_S004_E014";
    String SAVE_BUTTON = "ZPL006_S004_B001";

    @TypeInto(value = AMOUNT_INPUT, clear = true)
    @KeyPress(value = Key.TAB, andWait = @Wait(value = SharedElements.LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE))
    ZPL006_S004_EditSmoothPaymentPage fillAmount(String amount);

    @Click(value = SAVE_BUTTON, andWait = @Wait(value = SharedElements.LOAD_IMG_DIV_CLASS, by = Lookup.CLASSNAME, until = Until.GONE))
    ZPL_OBR001_SmoothPaymentInfo clickSave();

}
