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.INK001_OBR001_004_ConfirmationPage.INK001_OBR001_004_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.INK001_OBR001_004_ConfirmationPage.OBR001_S001_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.INK001_OBR001_004_ConfirmationPage.PAGE_ID;
import static cz.moneta.test.dsl.ufo.banka.pages.common.pages.INK001_OBR001_004_ConfirmationPage.RIGHT_BUTTON;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, INK001_OBR001_004_PAGE_LABEL_XPATH}, by = Lookup.XPATH, waitSecondsForElement = 60)
@Wait(value = {PAGE_ID, RIGHT_BUTTON}, waitSecondsForElement = 60)
public interface INK001_OBR001_004_ConfirmationPage extends WebFlow<INK001_OBR001_004_ConfirmationPage>, StoreAccessor {

    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String INK001_OBR001_004_PAGE_LABEL_XPATH = "//div[text()='INK001_OBR001_004']";
    String PAGE_ID = "OBR001_S001_X002";
    String LEFT_BUTTON = "OBR001_S001_B001";
    String CENTER_BUTTON = "OBR001_S001_B002";
    String RIGHT_BUTTON = "OBR001_S001_B003";

    @Click(LEFT_BUTTON)
    INK001_OBR001_004_ConfirmationPageTransitions clickLeftButton();

    @Click(CENTER_BUTTON)
    INK001_OBR001_004_ConfirmationPageTransitions clickCenterButton();

    @Click(RIGHT_BUTTON)
    INK001_OBR001_004_ConfirmationPageTransitions clickRightButton();

}