Documentation
¶
Index ¶
Constants ¶
View Source
const DebugMode = true
DebugMode determines whether to run selenium in debug mode
Variables ¶
View Source
var ( // SeleniumPath is the path to the standalone Selenium server jar. SeleniumPath = "vendor/selenium-server.jar" // ChromeDriverPath is the path to the chrome driver. ChromeDriverPath = "vendor/chromedriver" // ChromeBinPath is the path to the chrome binary. ChromeBinPath = "vendor/chrome-linux/chrome" )
Functions ¶
Types ¶
type ChromeWebDriver ¶
type ChromeWebDriver struct { WebDriver *selenium.WebDriver `json:"web_driver"` // The web driver itself Service *selenium.Service `json:"service"` // The selenium service Options []selenium.ServiceOption `json:"options"` // The service configuration/options Capabilities selenium.Capabilities `json:"Capabilities"` // The capabilities (further browser configuration) Running bool `json:"running"` // The status of the instance Port int `json:"port"` // The port that the instance will run on }
ChromeWebDriver is an abstraction class for a selenium chrome webdriver.
func NewChromeWebDriver ¶
func NewChromeWebDriver(port int) (*ChromeWebDriver, error)
NewChromeWebDriver returns a new live web driver.
func (*ChromeWebDriver) Stop ¶
func (cwd *ChromeWebDriver) Stop() error
Stop stops a ChromeWebDriver.
func (*ChromeWebDriver) String ¶
func (cwd *ChromeWebDriver) String() string
String marshals a ChromeWebDriver.
Click to show internal directories.
Click to hide internal directories.