package cz.moneta.test.dsl.fortelight.components;

import cz.moneta.test.dsl.fortelight.pages.intermediary.ImportdealerPage;
import cz.moneta.test.harness.support.web.Builder;
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 static cz.moneta.test.dsl.fortelight.components.IntermediaryMenu.CONTROL_MENU_UL;

@Wait(CONTROL_MENU_UL)
public interface IntermediaryMenu extends Builder {
    String SIDE_BLOCK_DIV = "//div[@class='side-block']";
    String CONTROL_MENU_UL = SIDE_BLOCK_DIV + "//ul[@class='control menu']";
    String IMPORT_DEALER_LINK = CONTROL_MENU_UL + "//a[@href='/intermediary/importdealer/']";

    @Wait(value = IMPORT_DEALER_LINK, by = Lookup.XPATH, explicitWaitSeconds = 3)
    @Click(IMPORT_DEALER_LINK)
    ImportdealerPage clickImportDealerMenu();
}