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;

/**
 * 

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