public static String getUrl(AbstractPrimePage page) {
        String baseLocation = page.getBaseLocation();
        if (baseLocation == null) {
            baseLocation = getBaseUrl();
        }
        if (baseLocation == null) {
            DeploymentAdapter deploymentAdapter = ConfigProvider.getInstance().getDeploymentAdapter();
            String message = "Cannot determine base url. Please either configure " + ConfigProvider.DEPLOYMENT_BASEURL + " or " +
                    (deploymentAdapter != null ?
                            ("implement " + deploymentAdapter.getClass().getCanonicalName() + "#getBaseUrl") :
                            ("define " + ConfigProvider.DEPLOYMENT_ADAPTER + " with implemented DeploymentAdapter#getBaseUrl")) +
                    " or implement " + page.getClass().getCanonicalName() + "#getBaseLocation";
            throw new RuntimeException(message);
        }
        return baseLocation + page.getLocation();
    }
Gets the URL of the page.

@param page the {@link AbstractPrimePage}
@return the URL of the page
primefaces-selenium/primefaces-selenium-core/src/main/java/org/primefaces/selenium/PrimeSelenium.java