# README
webdriver client for go
About
貌似原作者不再维护,故此fork
次仓库,以支持chrome devtools procotol
的操作.
感谢原作者花费时间及精力贡献此组件包.
About
This is a WebDriver client for Go. It supports the WebDriver protocol and has been tested with various versions of Selenium WebDriver, Firefox and Geckodriver, and Chrome and ChromeDriver,
selenium
is currently maintained by Eric Garrido (@minusnine).
Installing
Run
go get -t -d github.com/stitch-june/selenium
to fetch the package.
The package requires a working WebDriver installation, which can include recent versions of a web browser being driven by Selenium WebDriver.
License
This project is licensed under the MIT license.
# Packages
Package chrome provides Chrome-specific options for WebDriver.
Package firefox provides Firefox-specific types for WebDriver.
Package log provides logging-related configuration types and constants.
Package sauce interacts with the Sauce Labs hosted browser testing environment.
Binary init downloads the necessary files to perform an integration test between this WebDriver client and multiple versions of Selenium and browsers.
# Functions
ChromeDriver sets the path for Chromedriver for the Selenium Server.
DeleteSession deletes an existing session at the WebDriver instance specified by the urlPrefix and the session ID.
Display specifies the value to which set the DISPLAY environment variable, as well as the path to the Xauthority file containing credentials needed to write to that X server.
GeckoDriver sets the path to the geckodriver binary for the Selenium Server.
HTMLUnit specifies the path to the JAR for the HTMLUnit driver (compiled with its dependencies).
JavaPath specifies the path to the JRE.
KeyDownAction builds a KeyAction which presses and holds the specified key.
KeyPauseAction builds a KeyAction which pauses for the supplied duration.
KeyUpAction builds a KeyAction press.
NewChromeDriverService starts a ChromeDriver instance in the background.
NewFrameBuffer starts an X virtual frame buffer running in the background.
NewFrameBufferWithOptions starts an X virtual frame buffer running in the background.
NewGeckoDriverService starts a GeckoDriver instance in the background.
NewRemote creates new remote client, this will also start a new session.
NewSeleniumService starts a Selenium instance in the background.
Output specifies that the WebDriver service should log to the provided writer.
PointerDown builds a PointerAction which presses and holds the specified pointer key.
PointerMove builds a PointerAction which moves the pointer.
PointerPause builds a PointerAction which pauses for the supplied duration.
PointerUp builds an action which releases the specified pointer key.
SetDebug sets debug mode.
StartFrameBuffer causes an X virtual frame buffer to start before the WebDriver service.
StartFrameBufferWithOptions causes an X virtual frame buffer to start before the WebDriver service.
# Constants
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Autodetect proxy, probably with WPAD.
Special keyboard keys, for SendKeys.
Methods by which to find elements.
Methods by which to find elements.
Methods by which to find elements.
Methods by which to find elements.
Methods by which to find elements.
Methods by which to find elements.
Methods by which to find elements.
Methods by which to find elements.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
DefaultURLPrefix is the default HTTP endpoint that offers the WebDriver API.
DefaultWaitInterval is the default polling interval for selenium.Wait function.
DefaultWaitTimeout is the default timeout for selenium.Wait function.
Special keyboard keys, for SendKeys.
Direct connection - no proxy in use.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
FromPointer calculates the offset from the current pointer position.
FromViewport calculates the offset from the viewport at 0,0.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Mouse buttons.
Manual proxy settings configured, e.g.
Special keyboard keys, for SendKeys.
Mouse buttons.
No description provided by the author
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
PAC - Proxy autoconfiguration from a URL.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
No description provided by the author
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Mouse buttons.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
Special keyboard keys, for SendKeys.
System settings used.
Special keyboard keys, for SendKeys.
No description provided by the author
Special keyboard keys, for SendKeys.
# Variables
HTTPClient is the default client to use to communicate with the WebDriver server.
# Structs
Cookie represents an HTTP cookie.
Error contains information about a failure of a command.
FrameBuffer controls an X virtual frame buffer running as a background process.
FrameBufferOptions describes the options that can be used to create a frame buffer.
Point is a 2D point.
Proxy specifies configuration for proxies in the browser.
Service controls a locally-running Selenium subprocess.
Size is a size of HTML element.
Status contains information returned by the Status method.
# Interfaces
WebDriver defines methods supported by WebDriver drivers.
WebElement defines method supported by web elements.
# Type aliases
Actions stores KeyActions and PointerActions for later execution.
Capabilities configures both the WebDriver process and the target browsers, with standard and browser-specific options.
Condition is an alias for a type that is passed as an argument for selenium.Wait(cond Condition) (error) function.
KeyAction represents an activity involving a keyboard key.
No description provided by the author
PointerAction represents an activity involving a pointer.
PointerMoveOrigin controls how the offset for the pointer move action is calculated.
PointerType is the type of pointer used by StorePointerActions.
ProxyType is an enumeration of the types of proxies available.
SameSite is the type for the SameSite field in Cookie.
ServiceOption configures a Service instance.