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

import cz.moneta.test.harness.context.StoreAccessor;
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.SIP001_OBR001_007_DocumentConfirmationPage.*;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, SIP001_OBR001_007_PAGE_LABEL_XPATH}, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait(value = {NO_SIGN_BUTTON, SHOW_PV_BUTTON, SIGNED_BUTTON}, waitSecondsForElement = 60)
public interface SIP001_OBR001_007_DocumentConfirmationPage extends WebFlow<SIP001_OBR001_007_DocumentConfirmationPage>, StoreAccessor {

    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String SIP001_OBR001_007_PAGE_LABEL_XPATH = "//div[text()='SIP001_OBR001_007']";
    String SIGNED_BUTTON = "OBR001_S001_B003";
    String NO_SIGN_BUTTON = "OBR001_S001_B001";
    String SHOW_PV_BUTTON = "OBR001_S001_B002";

    @Click(SIGNED_BUTTON)
    POD003_S004_ClientCharged clickSigned();

}