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

import cz.moneta.test.dsl.ufo.banka.pages.products.current.account.BUF001_S001_CurrentAccountPage;
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.main.TIS011_OBR001_PrintOptionsPage.PAGE_ID_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.main.TIS011_OBR001_PrintOptionsPage.POSTPONE_PRINT_BUTTON;
import static cz.moneta.test.dsl.ufo.banka.pages.main.TIS011_OBR001_PrintOptionsPage.PRINT_NOW_BUTTON;

@Wait(value = {POSTPONE_PRINT_BUTTON, PRINT_NOW_BUTTON}, waitSecondsForElement = 80)
@Wait(value = PAGE_ID_XPATH, waitSecondsForElement = 80, by = Lookup.XPATH)
public interface TIS011_OBR001_PrintOptionsPage extends WebFlow<BUF001_S001_CurrentAccountPage> {

    String POSTPONE_PRINT_BUTTON = "OBR001_S001_B001";
    String PRINT_NOW_BUTTON = "OBR001_S001_B003";
    String PAGE_ID_XPATH = "//div[text()='TIS011_OBR001_002']";

    @Click(POSTPONE_PRINT_BUTTON)
    TIS011_OBR001_PrintOptionsPageTransitions clickPostponePrint();

    @Click(PRINT_NOW_BUTTON)
    TIS011_OBR001_PrintOptionsPageTransitions clickPrintNow();

}
