Package com.goate.selenium.staff
Class GoateDriver
java.lang.Object
com.goate.selenium.staff.GoateDriver
- Direct Known Subclasses:
ChromeWebDriver,EdgeWebDriver,FirefoxWebDriver,IEWebDriver,OperaWebDriver,RemoteWebDriver,SafariWebDriver
Base class for defining a driver builder object.
The paths are relative to the resource directory.
By default they are looked for in webdrivers/{browser}/{os}/[architecture]
The location may also be set in an eut/{eut}.properties file by setting selenium.{browser}.path
The path should be relative to the resources directory. The driver(s) still need to be in the correct {os}/[architecture] folder.
supported OSs and the os folder name to use:
The paths are relative to the resource directory.
By default they are looked for in webdrivers/{browser}/{os}/[architecture]
The location may also be set in an eut/{eut}.properties file by setting selenium.{browser}.path
The path should be relative to the resources directory. The driver(s) still need to be in the correct {os}/[architecture] folder.
supported OSs and the os folder name to use:
- windows
- linux
- macos
- android
- ios
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCapability(String name, Object value) abstract org.openqa.selenium.WebDriverbuild()Override this method and return an instance of the webdriver.
When instantiating, make sure to set the desired capabilities.protected com.goate.selenium.staff.GoateDriver.OSdetectOS()org.openqa.selenium.MutableCapabilitiesgetDc()protected abstract org.openqa.selenium.MutableCapabilitiesOverride this method to return the capabilities for the implemented web driver.protected void
-
Constructor Details
-
GoateDriver
public GoateDriver()
-
-
Method Details
-
loadCapabilities
protected abstract org.openqa.selenium.MutableCapabilities loadCapabilities()Override this method to return the capabilities for the implemented web driver.- Returns:
- The desired capabilities for the given driver.
-
getDc
public org.openqa.selenium.MutableCapabilities getDc() -
build
public abstract org.openqa.selenium.WebDriver build()Override this method and return an instance of the webdriver.
When instantiating, make sure to set the desired capabilities.- Returns:
- The new web driver.
-
addCapability
-
detectOS
protected com.goate.selenium.staff.GoateDriver.OS detectOS() -
setPathToDriver
protected void setPathToDriver()
-