public class SePlusInstallInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHOROMEDRIVER_UNIX |
static java.lang.String |
CHOROMEDRIVER_WINDOWS |
static java.lang.String |
EDGEDRIVER_WINDOWS |
static java.lang.String |
ENV_SAFSDIR |
static java.lang.String |
ENV_SELENIUM_PLUS |
static java.lang.String |
FAKE_DRIVER_NAME |
static java.lang.String |
IEDRIVER_WINDOWS |
static java.lang.String |
INDICATOR_SAFS |
static java.lang.String |
INDICATOR_SEPLUS |
static java.lang.String |
JAR_JSTAFEMBEDDED |
static java.lang.String |
JAR_SELENIUM_SAFS |
static java.lang.String |
JAR_SELENIUM_SEPLUS |
static java.lang.String |
NAME_PARTIAL_SELENIUM_SERVER_STDALONE |
static java.lang.String |
OPERADRIVER_WINDOWS |
static java.lang.String |
PRODUCT_SAFS |
static java.lang.String |
PRODUCT_SELENIUM_PLUS |
static java.lang.String |
RELATIVE_DIR_ECLIPSE |
static java.lang.String |
RELATIVE_DIR_EXTRA_SAFS |
static java.lang.String |
RELATIVE_DIR_EXTRA_SEPLUS |
static java.lang.String |
RELATIVE_DIR_JAVA_BIN_SEPLUS |
static java.lang.String |
RELATIVE_DIR_JAVA32_BIN_SAFS |
static java.lang.String |
RELATIVE_DIR_JAVA64_BIN_SAFS |
static java.lang.String |
RELATIVE_DIR_LIB_SAFS |
static java.lang.String |
RELATIVE_DIR_LIB_SEPLUS |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getChromeDriver() |
java.lang.String |
getClassPath(boolean appendSystemClassPath) |
java.io.File |
getDriver(java.lang.String browserName) |
java.lang.String |
getEclipseConfig(java.lang.String property)
Get the value of a property from the Eclipse configuration file (under Eclipse directory
getEclipseDir() )
".eclipseproduct"
"configuration\config.ini"
|
java.io.File |
getEclipseDir() |
java.io.File |
getEdgeDriver() |
java.io.File |
getExtraDir() |
java.io.File |
getIEDriver() |
java.lang.String |
getJavaexe() |
java.io.File |
getLibraryDir() |
java.io.File |
getRootDir() |
java.io.File |
getSeleniumStandaloneJar() |
static java.lang.String |
getSourceLocation() |
protected static java.lang.String |
GetSystemEnvironmentVariable(java.lang.String env) |
static SePlusInstallInfo |
instance() |
boolean |
isSAFS() |
static boolean |
IsSAFS()
To test if we are using product "SAFS".
|
boolean |
isSeleniumPlus() |
static boolean |
IsSeleniumPlus()
To test if we are using product "SeleniumPlus".
|
void |
setExtraDir(java.io.File extraDir) |
void |
setJavaexe(java.lang.String javaexe) |
void |
setLibraryDir(java.io.File libraryDir) |
void |
setRootDir(java.io.File rootDir) |
void |
setSeleniumStandaloneJar(java.io.File seleniumStandaloneJar) |
java.lang.String |
toString() |
protected SePlusInstallInfo |
validate()
Validate the path of Selenium, Embedded Java, Library etc.
|
public static final java.lang.String PRODUCT_SELENIUM_PLUS
public static final java.lang.String PRODUCT_SAFS
public static final java.lang.String ENV_SELENIUM_PLUS
public static final java.lang.String ENV_SAFSDIR
public static final java.lang.String RELATIVE_DIR_ECLIPSE
public static final java.lang.String RELATIVE_DIR_EXTRA_SAFS
public static final java.lang.String RELATIVE_DIR_LIB_SAFS
public static final java.lang.String RELATIVE_DIR_JAVA64_BIN_SAFS
public static final java.lang.String RELATIVE_DIR_JAVA32_BIN_SAFS
public static final java.lang.String RELATIVE_DIR_EXTRA_SEPLUS
public static final java.lang.String RELATIVE_DIR_LIB_SEPLUS
public static final java.lang.String RELATIVE_DIR_JAVA_BIN_SEPLUS
public static final java.lang.String JAR_SELENIUM_SAFS
public static final java.lang.String JAR_SELENIUM_SEPLUS
public static final java.lang.String JAR_JSTAFEMBEDDED
public static final java.lang.String INDICATOR_SEPLUS
public static final java.lang.String INDICATOR_SAFS
public static final java.lang.String CHOROMEDRIVER_WINDOWS
public static final java.lang.String CHOROMEDRIVER_UNIX
public static final java.lang.String IEDRIVER_WINDOWS
public static final java.lang.String EDGEDRIVER_WINDOWS
public static final java.lang.String OPERADRIVER_WINDOWS
public static final java.lang.String FAKE_DRIVER_NAME
public static final java.lang.String NAME_PARTIAL_SELENIUM_SERVER_STDALONE
public boolean isSeleniumPlus()
public boolean isSAFS()
public static SePlusInstallInfo instance() throws SeleniumPlusException
SeleniumPlusException
public java.io.File getRootDir()
public void setRootDir(java.io.File rootDir)
public java.io.File getExtraDir()
public void setExtraDir(java.io.File extraDir)
public java.io.File getEclipseDir()
eclipseDir
.public java.io.File getLibraryDir()
public void setLibraryDir(java.io.File libraryDir)
public java.lang.String getJavaexe()
public void setJavaexe(java.lang.String javaexe)
public java.io.File getSeleniumStandaloneJar()
public void setSeleniumStandaloneJar(java.io.File seleniumStandaloneJar)
public java.lang.String getClassPath(boolean appendSystemClassPath)
protected static java.lang.String GetSystemEnvironmentVariable(java.lang.String env)
public java.lang.String getEclipseConfig(java.lang.String property)
getEclipseDir()
)
property
- String, the property name in Eclipse configuration file.getEclipseDir()
public java.io.File getChromeDriver()
public java.io.File getIEDriver()
public java.io.File getEdgeDriver()
public java.io.File getDriver(java.lang.String browserName)
browserName
- String, the key representing the browser, such as
File.isFile()
to verify its validity.protected SePlusInstallInfo validate() throws SeleniumPlusException
SeleniumPlusException
- if the validation fails.public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getSourceLocation()
public static boolean IsSeleniumPlus()
Constants.ENV_SELENIUM_PLUS
must exist.
Constants.ENV_SELENIUM_PLUS
)
public static boolean IsSAFS()
Constants.ENV_SAFSDIR
must exist.
Constants.ENV_SAFSDIR
)
Copyright © SAS Institute. All Rights Reserved.