package cz.moneta.test.dsl.hypos.pages.mpt;

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

import static cz.moneta.test.dsl.hypos.pages.mpt.MptPage.SEARCH_BUTTON;

@Wait(SEARCH_BUTTON)
public interface MptPage extends HyposPageFlow<MptPage>, StoreAccessor {
    String SEARCH_BUTTON = "//input[@value='Vyhledat']";
    String CONTRACT_LIST = "//table[@id='list']//td[1]//a[@href]";

    @Click(SEARCH_BUTTON)
    MptPage clickSearchButton();

    @CheckElementPresent(CONTRACT_LIST)
    MptPage checkContractList();
}