Versions in this module Expand all Collapse all v0 v0.2.0 May 29, 2018 Changes in this version + func ErrorError(err error) string + func ErrorFromError(err, message string) error + func ErrorFromStatus(status int, message string) error + func ErrorHTTPStatus(err error) int + func ErrorMessage(err error) string + func ErrorStackTrace(err error) interface + func ErrorStatus(err error) int + func ErrorValue(err error) interface + func IsWebDriverError(err error) bool + func MarshalError(err error) ([]byte, error) + type LogEntry struct + Level string + Message string + Timestamp float64 + type Rectangle struct + Height float64 + Width float64 + X float64 + Y float64 + type WebDriver interface + Address func() *url.URL + Capabilities func() map[string]interface{} + CommandURL func(endpoint ...string) (*url.URL, error) + CurrentURL func(context.Context) (*url.URL, error) + ElementFromID func(string) WebElement + ElementFromMap func(map[string]interface{}) (WebElement, error) + ExecuteScript func(ctx context.Context, script string, args []interface{}, value interface{}) error + ExecuteScriptAsync func(ctx context.Context, script string, args []interface{}, value interface{}) error + ExecuteScriptAsyncWithTimeout func(ctx context.Context, timeout time.Duration, script string, args []interface{}, ...) error + GetWindowRect func(context.Context) (Rectangle, error) + Logs func(ctx context.Context, logType string) ([]LogEntry, error) + NavigateTo func(context.Context, *url.URL) error + PageSource func(context.Context) (string, error) + Quit func(context.Context) error + Screenshot func(context.Context) (image.Image, error) + SessionID func() string + SetScriptTimeout func(context.Context, time.Duration) error + SetWindowPosition func(ctx context.Context, x, y float64) error + SetWindowRect func(context.Context, Rectangle) error + SetWindowSize func(ctx context.Context, width, height float64) error + W3C func() bool + WindowHandles func(context.Context) ([]string, error) + func CreateSession(ctx context.Context, addr string, attempts int, ...) (WebDriver, error) + type WebElement interface + Bounds func(ctx context.Context) (image.Rectangle, error) + ID func() string + ScrollIntoView func(ctx context.Context) error + ToMap func() map[string]string