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

import cz.moneta.test.dsl.ufo.banka.pages.common.pages.TIS046_S001_DocumentsProvidedToClientPage;
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.insurance.POD038_OBR001_001_VerificationOfSignaturePage.OBR001_S001_PAGE_LABEL_XPATH;
import static cz.moneta.test.dsl.ufo.banka.pages.insurance.POD038_OBR001_001_VerificationOfSignaturePage.POD038_OBR001_001_PAGE_LABEL_XPATH;

@Wait(value = {OBR001_S001_PAGE_LABEL_XPATH, POD038_OBR001_001_PAGE_LABEL_XPATH}, by = Lookup.XPATH, waitSecondsForElement = 40)
public interface POD038_OBR001_001_VerificationOfSignaturePage extends WebFlow<POD038_OBR001_001_VerificationOfSignaturePage> {

    String OBR001_S001_PAGE_LABEL_XPATH = "//div[text()='OBR001_S001']";
    String POD038_OBR001_001_PAGE_LABEL_XPATH = "//div[contains(text(), 'POD038_OBR001_001')]";
    String SIGNED_BUTTON = "OBR001_S001_B003";

    @Click(SIGNED_BUTTON)
    PIP001_EnterIntoOtherInsurancePage clickSignedButtonAndContinueToEnterIntoOtherInsurancePage();

    @Click(SIGNED_BUTTON)
    TIS046_S001_DocumentsProvidedToClientPage clickSignedButtonAndGoToDocumentsProvidedToClientPage();

}