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

aquality.selenium.core.configurations.ElementCacheConfiguration 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.configurations;

import aquality.selenium.core.utilities.ISettingsFile;
import com.google.inject.Inject;

public class ElementCacheConfiguration implements IElementCacheConfiguration{

    private static final String IS_ENABLED_PATH = "/elementCache/isEnabled";
    private boolean isEnabled;

    @Inject
    public ElementCacheConfiguration(ISettingsFile settingsFile){
        isEnabled = settingsFile.isValuePresent(IS_ENABLED_PATH) && Boolean.valueOf(settingsFile.getValue(IS_ENABLED_PATH).toString());
    }

    @Override
    public boolean isEnabled() {
        return isEnabled;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy