Class GoateDriver

java.lang.Object
com.goate.selenium.staff.GoateDriver
Direct Known Subclasses:
ChromeWebDriver, EdgeWebDriver, FirefoxWebDriver, IEWebDriver, OperaWebDriver, RemoteWebDriver, SafariWebDriver

public abstract class GoateDriver extends Object
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:
  • windows
  • linux
  • macos
  • android
  • ios
Created by Eric Angeli on 6/28/2017.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addCapability(String name, Object value)
     
    abstract org.openqa.selenium.WebDriver
    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.OS
     
    org.openqa.selenium.MutableCapabilities
     
    protected abstract org.openqa.selenium.MutableCapabilities
    Override this method to return the capabilities for the implemented web driver.
    protected void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public GoateDriver addCapability(String name, Object value)
    • detectOS

      protected com.goate.selenium.staff.GoateDriver.OS detectOS()
    • setPathToDriver

      protected void setPathToDriver()