package cz.moneta.test.dsl.hypos.pages.contract.realty;

import cz.moneta.test.dsl.hypos.pages.HyposPageFlow;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.hypos.pages.contract.realty.OrderSupervisionPage.PAGE_TITLE;
import static cz.moneta.test.dsl.hypos.pages.contract.realty.OrderSupervisionPage.SEND_BUTTON;

@Wait({PAGE_TITLE, SEND_BUTTON})
public interface OrderSupervisionPage extends HyposPageFlow<OrderSupervisionPage> {
    String PAGE_TITLE = "//h1[contains(text(),'Objednání supervize k celku č.')]";
    String SEND_BUTTON = "//input[@id='submit-appraisement-order']";

    @Click(SEND_BUTTON)
    UnitDetailPage clickSubmitButton();
}