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

import cz.moneta.test.dsl.ufo.banka.pages.main.PKU001_S002_CreatePaymentOrderPage;
import cz.moneta.test.harness.support.web.Click;
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.common.pages.PKU001_OBR001_SignatureApprovalPage.OBR001_S001_PAGE_LABEL_XPATH;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, PKU001_OBR001_SignatureApprovalPage.PKU001_OBR001_002_PAGE_LABEL_XPATH}, waitSecondsForElement = 90, by = Lookup.XPATH)
public interface PKU001_OBR001_SignatureApprovalPage extends WebFlow<PKU001_S002_CreatePaymentOrderPage> {

    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String YES_BUTTON = "OBR001_S001_B001";
    String PKU001_OBR001_002_PAGE_LABEL_XPATH = "//div[text()='PKU001_OBR001_002']";

    @Click(YES_BUTTON)
    PKU001_OBR001_TransactionVerifiedPage clickYesButton();
}
