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

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

import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.TRP001_OBR001_002_StandingOrderConfirmationPage.*;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, TRP001_OBR001_002_PAGE_LABEL_XPATH}, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait(value = {CENTER_BUTTON}, waitSecondsForElement = 60)
public interface TRP001_OBR001_002_StandingOrderConfirmationPage extends WebFlow<TRP001_OBR001_002_StandingOrderConfirmationPage>, StoreAccessor {

    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String TRP001_OBR001_002_PAGE_LABEL_XPATH = "//div[text()='TRP001_OBR001_002_(S017)']";
    String RIGHT_BUTTON = "OBR001_S001_B003";
    String LEFT_BUTTON = "OBR001_S001_B001";
    String CENTER_BUTTON = "OBR001_S001_B002";
    String STANDING_ORDER_ID_KEY = "STANDING_ORDER_ID_KEY";
    String STANDING_ORDER_ID_XPATH = "OBR001_S001_L004";

    @Click(RIGHT_BUTTON)
    TRP001_OBR001_002_StandingOrderConfirmationPage clickSigned();

    @StoreElementContent(storeKey = STANDING_ORDER_ID_KEY, value = STANDING_ORDER_ID_XPATH)
    TRP001_OBR001_002_StandingOrderConfirmationPage storeStandingOrderId();

    @Click(CENTER_BUTTON)
    TRP001_OBR001_002_StandingOrderConfirmationPageTransition clickContinue();
}