All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bithill.selenium.site.SiteConfig Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
package org.bithill.selenium.site;

import java.io.File;

import org.bithill.selenium.resolving.Page;

/**
 * Basic setup of a web site (web application).
 * Contains and provides an information shared by all the pages of a site.
 */
public abstract class SiteConfig
{
    /**
     * Site address.
     *
     * @return URL of the site's entry page
     */
    public abstract String getUrl();

    /**
     * Screenshot directory.
     *
     * @return path to a site-wide directory where the {@link Page} classes should store screenshots
     */
    public String getScreenshotDir()
    {
        return System.getProperty("user.dir") + File.separatorChar + "screenshots";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy