Documentation
¶
Overview ¶
Package proxy provides a WebDriver protocol that forwards requests to a WebDriver server provided by an environment.Env.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHTTPHandlerProvider ¶
func AddHTTPHandlerProvider(route string, provider HTTPHandlerProvider)
AddHTTPHandlerProvider adds a HTTPHandlerProvider used to create handlers for specified routes in any Proxy structs creates by New.
Types ¶
type HTTPHandler ¶
type HTTPHandler interface { http.Handler healthreporter.HealthReporter // Shutdown is called when the proxy is in the process of shutting down. Shutdown(context.Context) error }
A HTTPHandler implements http.Handler plus a Shutdown method.
type HTTPHandlerProvider ¶
type HTTPHandlerProvider func(*Proxy) (HTTPHandler, error)
A HTTPHandlerProvider is a function that provides a HTTPHandler.
type Proxy ¶
type Proxy struct { Diagnostics diagnostics.Diagnostics Env environment.Env Metadata *metadata.Metadata HTTPAddress string HTTPSAddress string // contains filtered or unexported fields }
Proxy starts a WebDriver protocol proxy.
func New ¶
func New(env environment.Env, m *metadata.Metadata, d diagnostics.Diagnostics) (*Proxy, error)
New creates a new Proxy object.
Directories
¶
Path | Synopsis |
---|---|
Package driverhub provides a handler for proxying connections to a Selenium server.
|
Package driverhub provides a handler for proxying connections to a Selenium server. |
debugger
Package debugger enables WTL Debugger.
|
Package debugger enables WTL Debugger. |
drivermu
Package drivermu implements a handler that temporally serializes all commands to a session.
|
Package drivermu implements a handler that temporally serializes all commands to a session. |
googlescreenshot
Package googlescreenshot includes a handler for an advanced screenshot endpoint at POST google/screenshot.
|
Package googlescreenshot includes a handler for an advanced screenshot endpoint at POST google/screenshot. |
quithandler
Package quithandler checks if a window close command is closing the last window and treats it as a quit if it is.
|
Package quithandler checks if a window close command is closing the last window and treats it as a quit if it is. |
scripttimeout
Package scripttimeout translates calls to set script timeout into calls on the WebDriver object so it can record the last set script timeout.
|
Package scripttimeout translates calls to set script timeout into calls on the WebDriver object so it can record the last set script timeout. |
Package healthz provides an HTTPHandler that always returns the string "ok".
|
Package healthz provides an HTTPHandler that always returns the string "ok". |
Click to show internal directories.
Click to hide internal directories.