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

import cz.moneta.test.dsl.hypos.components.StructureMenu;
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.structure.StructurePpdPage.ACTIVE_SANCTIONS_LINK;

@Wait(ACTIVE_SANCTIONS_LINK)
public interface StructurePpdPage extends HyposPageFlow<StructurePpdPage>, StructureMenu, StoreAccessor {
    String CONTRACTS = "//table//tbody//td/a[contains(@href,'/')]";
    String ACTIVE_SANCTIONS_LINK = "//a[contains(text(),'Obchody s aktivní sankcí')]";

    @CheckElementPresent(CONTRACTS)
    StructurePpdPage checkContracts();

    @Click(ACTIVE_SANCTIONS_LINK)
    StructurePpdPage clickActiveSanctions();
}