dev.galasa.selenium.internal.properties.SeleniumWebDriverPath Maven / Gradle / Ivy
/*
* 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);
}
}