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

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

There is a newer version: 0.34.0
Show newest version
/*
 * Licensed Materials - Property of IBM
 * 
 * (c) Copyright IBM Corp. 2019.
 */
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 Driver Path CPS Property
 * 
 * @galasa.cps.property
 * 
 * @galasa.name selenium.instance.INSTANCE.browser.path
 * 
 * @galasa.description Provides a path to the webdriver on the system being tested
 * 
 * @galasa.required Yes
 * 
 * @galasa.valid_values A valid String representation of a path
 * 
 * @galasa.examples 
 * selenium.instance.PRIMARY.chrome.path=/usr/bin/chromedriver
 * 
 */
public class SeleniumWebDriverPath extends CpsProperties {

    public static String get(String instance, String browser) throws ConfigurationPropertyStoreException, SeleniumManagerException {
        return getStringNulled(SeleniumPropertiesSingleton.cps(), "instance",  "path", instance, browser);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy