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;
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