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

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.signature.patterns.NPV019_OBR001_ConfirmationPage.CLIENT_HAS_CONFIRMED_BUTTON;
import static cz.moneta.test.dsl.ufo.banka.pages.main.signature.patterns.NPV019_OBR001_ConfirmationPage.PAGE_ID_XPATH;

@Wait(value = PAGE_ID_XPATH, by = Lookup.XPATH)
@Wait(CLIENT_HAS_CONFIRMED_BUTTON)
public interface NPV019_OBR001_ConfirmationPage extends WebFlow<NPV019_OBR001_ConfirmationPage> {

    String PAGE_ID_XPATH = "//div[contains(text(), 'NPV016_OBR001_008') or contains(text(), 'NPV019_OBR001_001')]";
    String CLIENT_HAS_CONFIRMED_BUTTON = "OBR001_S001_B001";

    @Click(CLIENT_HAS_CONFIRMED_BUTTON)
    NPV019_OBR001_ConfirmationPageTransitions clickConfirmed();

}
