aquality.selenium.core.configurations.ElementCacheConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquality-selenium-core Show documentation
Show all versions of aquality-selenium-core Show documentation
Library with core functions simplifying work with Selenium-controlled applications.
package aquality.selenium.core.configurations;
import aquality.selenium.core.utilities.ISettingsFile;
import com.google.inject.Inject;
/**
* ElementCacheConfiguration class.
*
* @author lenovo
* @version $Id: $Id
*/
public class ElementCacheConfiguration implements IElementCacheConfiguration{
private static final String IS_ENABLED_PATH = "/elementCache/isEnabled";
private boolean isEnabled;
@Inject
/**
* Constructor for ElementCacheConfiguration.
*
* @param settingsFile a {@link aquality.selenium.core.utilities.ISettingsFile} object.
*/
public ElementCacheConfiguration(ISettingsFile settingsFile){
isEnabled = settingsFile.isValuePresent(IS_ENABLED_PATH) && Boolean.valueOf(settingsFile.getValue(IS_ENABLED_PATH).toString());
}
/** {@inheritDoc} */
@Override
public boolean isEnabled() {
return isEnabled;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy