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

import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.banka.pages.products.current.account.transasctional.PKU005_S003_DetailPostedTransactionPage.DETAIL_POSTED_PAGE_ID;

@Wait(value = {DETAIL_POSTED_PAGE_ID}, waitSecondsForElement = 30)
public interface PKU005_S003_DetailPostedTransactionPage extends WebFlow<PKU005_S003_DetailPostedTransactionPage> {
    String TRANSACTION_VALUE = "//div[@id='PKU005_S003_L015' and text()='%s']";
    String DETAIL_POSTED_PAGE_ID = "XXX001_T001_L005";

    @CheckElementPresent(value = TRANSACTION_VALUE, by = Lookup.XPATH, isStringDynamicXpath = true)
    PKU005_S003_DetailPostedTransactionPage checkTransactionValue(String transactionValue);

}