package cz.moneta.test.dsl.ufo.banka;

import cz.moneta.test.harness.context.StoreAccessor;
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 UfoBankaPageFlow<A extends WebFlow<A>> extends WebFlow<A>, StoreAccessor {

    String SPINNER = "//div[@class='gwt-PopupPanel']//div[@class='popupContent']"; //TODO use SharedElements.LOAD_IMG_DIV_CLASS

    default void beforePageLoad(WebEndpoint endpoint) {
        endpoint.waitForElementsToLoad(100, Lookup.XPATH, Until.GONE, SPINNER);
    }
}
