package cz.moneta.test.dsl.forte;

import cz.moneta.test.dsl.forte.pages.ForteHeaderMenu;
import cz.moneta.test.harness.endpoints.WebEndpoint;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.WebFlow;

public interface FortePageFlow<A extends WebFlow<A>> extends WebFlow<A>, ForteHeaderMenu {
    String SPINNER = "spinner";
    String CONTENT_DIV = "//div[@class='content_data']";

    default void beforePageLoad(WebEndpoint webEndpoint) {
        webEndpoint.waitForElementsToLoad(30, Lookup.ID, Until.GONE, SPINNER);
    }
}
