package cz.moneta.test.dsl.ib.doidentifikace;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.welcome.WelcomePage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.doidentifikace.SuccessPage.SUCCESS_WINDOW;

@Wait(SUCCESS_WINDOW)
public interface SuccessPage extends IbPageFlow<SuccessPage> {
    String SUCCESS_WINDOW = "//span[@testid='go-to-dashboard-button']";

    @Click(value = SUCCESS_WINDOW, jsClick = true)
    WelcomePage focusAndClickIBReturnButton();
}
