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

aquality.selenium.core.utilities.IUtilitiesModule Maven / Gradle / Ivy

Go to download

Library with core functions simplifying work with Selenium-controlled applications.

There is a newer version: 4.2.0
Show newest version
package aquality.selenium.core.utilities;

/**
 * Provides implementations for utilities module.
 */
public interface IUtilitiesModule {

    /**
     * @return implementation of {@link IActionRetrier}.
     */
    default Class getActionRetrierImplementation() {
        return ActionRetrier.class;
    }

    /**
     * @return implementation of {@link IElementActionRetrier}.
     */
    default Class getElementActionRetrierImplementation() {
        return ElementActionRetrier.class;
    }

    /**
     * Provides default {@link ISettingsFile} with settings.
     * Default value is settings.json.
     * You are able to override this path, by setting environment variable 'profile'.
     * In this case, settings file will be settings.{profile}.json.
     *
     * @return An instance of settings.
     */
    default ISettingsFile getInstanceOfSettingsFile() {
        String settingsProfile = System.getProperty("profile") == null ? "settings.json" : "settings." + System.getProperty("profile") + ".json";
        return new JsonSettingsFile(settingsProfile);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy