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

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

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

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

    String PAGE_LABEL_XPATH = "//div[text()='ZPL002_S003']";
    String PAYMENT_XPATH = "//table[@id='ZPL002_S003_G001_UfoTable']//td[text()='%s']";
    String VERIFICATION_BUTTON = "ZPL002_S003_B001";

    @Click(value = PAYMENT_XPATH, by = Lookup.XPATH, isStringDynamicXpath = true)
    ZPL002_S003_ListOfSmoothPaymentsForVerificationPage clickPayment(String paymentId);

    @Click(VERIFICATION_BUTTON)
    ZPL002_S001_SmoothPaymentVerificationPage clickVerification();

}
