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

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

import static cz.moneta.test.dsl.ufo.banka.pages.main.SIP001_S002_ListOfSIPOPayments.SIP001_S002_PAGE_LABEL_XPATH;

@Wait(value = SIP001_S002_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 90)
@Wait(value = SIP001_S002_ListOfSIPOPayments.CREATE_BUTTON, waitSecondsForElement = 90)
public interface SIP001_S002_ListOfSIPOPayments extends WebFlow<SIP001_S002_ListOfSIPOPayments>, StoreAccessor {

    String SIP001_S002_PAGE_LABEL_XPATH = "//div[text()='SIP001_S002']";
    String CREATE_BUTTON = "SIP001_S002_B003";
    String CHOOSE_BUTTON = "SIP001_S002_G001-0";
    String DEACTIVATE_BUTTON = "SIP001_S002_B005";

    @Click(CREATE_BUTTON)
    SIP001_S004_CreateNewSIPOPaymentPage clickCreate();

    @Click(CHOOSE_BUTTON)
    SIP001_S002_ListOfSIPOPayments chooseSipoPayment();

    @Wait(value = DEACTIVATE_BUTTON, until = Until.VISIBLE)
    @Click(DEACTIVATE_BUTTON)
    SIP001_S014_DeleteSIPOPayment clickDeactivate();
}
