package cz.moneta.test.dsl.payment_engine.parts_of_menu.menu_monitoring;

import cz.moneta.test.dsl.payment_engine.home.PaymentEngineHomePage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

public interface PaymentEngineMonitoringProcessReleaseAfterDispo extends WebFlow<PaymentEngineMonitoringProcessReleaseAfterDispo> {
    String OK_BUTTON = "//button[@type = 'submit']";
    String CLOSE_TAB = "//a[@class = 'x-tab-strip-close']";

    @Click(value = OK_BUTTON, andWait = @Wait(value = OK_BUTTON, until = Until.GONE))
    PaymentEngineMonitoringProcessReleaseAfterDispo clickOk();

    @Click(CLOSE_TAB)
    PaymentEngineHomePage closeTab();

}