package cz.moneta.test.dsl.ufo.operations.client.product;

import cz.moneta.test.harness.context.StoreAccessor;
import cz.moneta.test.harness.support.web.CheckElementContent;
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.operations.client.product.ProductActivationResultPage.OK_BUTTON;
import static cz.moneta.test.dsl.ufo.operations.client.product.ProductActivationResultPage.PAGE_NAME_XPATH;

@Wait(OK_BUTTON)
@Wait(value = PAGE_NAME_XPATH, by = Lookup.XPATH)
public interface ProductActivationResultPage extends StoreAccessor, WebFlow<ProductActivationResultPage> {
    String PAGE_NAME_XPATH = "//div[@id='BAL701_S002_L005' and text()='Výsledek zakládaného produktu']";
    String OK_BUTTON = "BAL701_S002_B001";

    @CheckElementContent("BAL701_S002_L003")
    ProductActivationResultPage checkProduct(String product);

    @Click(OK_BUTTON)
    KOK701_S001_MeetingSchedulingPage scheduleMeetingAtABranch();
}
