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

dev.galasa.selenium.internal.properties.SeleniumDefaultDriver Maven / Gradle / Ivy

The newest version!
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.selenium.internal.properties;

import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
import dev.galasa.framework.spi.cps.CpsProperties;
import dev.galasa.selenium.SeleniumManagerException;

/**
 * Selenium Default Driver CPS Property
 * 
 * @galasa.cps.property
 * 
 * @galasa.name selenium.default.driver.type
 * 
 * @galasa.description If set, describes the default the selenium driver that will be used.
 * 
 * @galasa.required No
 * 
 * @galasa.valid_values A valid String representation of a type. Available choices: local, docker, kubernetes, grid
 * 
 * @galasa.examples 
 * selenium.default.driver=FIREFOX
 * 
 */
public class SeleniumDefaultDriver extends CpsProperties {
    
    public static String get() throws ConfigurationPropertyStoreException, SeleniumManagerException {
        String driver = getStringNulled(SeleniumPropertiesSingleton.cps(), "default", "driver");
        if (driver != null) {
            return driver;
        }
        throw new SeleniumManagerException("No default, set 'selenium.default.driver'.");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy