package cz.moneta.test.dsl.ufo.cb.landing;

import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.cb.landing.EVD402_S001_DocumentRecordKeeping.RETURN_BUTTON;

@Wait(value = RETURN_BUTTON, until = Until.VISIBLE)
public interface EVD402_S001_DocumentRecordKeeping extends WebFlow<EVD402_S001_DocumentRecordKeeping> {
    String RETURN_BUTTON = "EVD402_S001_B012";
    String FIRST_RECORD_REGISTRATION_NUMBER = "//*[@id='EVD402_S001_G002_UfoTable']//td[text() = '%s']";

    @Wait(value = FIRST_RECORD_REGISTRATION_NUMBER, isStringDynamicXpath = true, by = Lookup.XPATH)
    void checkFirstRecordRegistrationNumber(String expectedRegistrationNumber);
}
