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

nl.hsac.fitnesse.junit.selenium.SeleniumJsonGridDriverFactoryFactory Maven / Gradle / Ivy

There is a newer version: 5.3.17
Show newest version
package nl.hsac.fitnesse.junit.selenium;

import java.util.Map;

/**
 * Creates a Selenium driver factory to override the configuration in the wiki.
 * This factory is configured by setting the system property 'seleniumGridUrl' AND 'seleniumJsonCapabilities'.
 */
public class SeleniumJsonGridDriverFactoryFactory extends SeleniumGridWithCapabilitiesDriverFactoryFactoryBase {
    @Override
    public boolean willOverride() {
        return isPropertySet(SELENIUM_GRID_URL)
                && !isPropertySet(SELENIUM_CAPABILITIES)
                && isPropertySet(SELENIUM_JSONCAPABILITIES);
    }

    @Override
    protected Map getCapabilities() {
        return parseJsonProperty(SELENIUM_JSONCAPABILITIES);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy