types

package
v0.0.0-...-47abacc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrElementlickIntercepted = errors.New("element click intercepted")
	ErrElementNotInteractable = errors.New("element not interactable")
	ErrInsecureCertificate    = errors.New("insecure certificate")
	ErrInvalidArgument        = errors.New("invalid argument")
	ErrInvalidCookieDomain    = errors.New("invalid cookie domain")
	ErrInvalidElementState    = errors.New("invalid element state")
	ErrInvalidSelector        = errors.New("invalid selector")
	ErrInvalidSessionID       = errors.New("invalid session id")
	ErrJavaScriptError        = errors.New("javascript error")
	ErrMoveTargetOutOfBounds  = errors.New("move target out of bounds")
	ErrNoSuchAlert            = errors.New("no such alert")
	ErrNoSuchCookie           = errors.New("no such cookie")
	ErrNoSuchElement          = errors.New("no such element")
	ErrNoSuchFrame            = errors.New("no such frame")
	ErrNoSuchWindow           = errors.New("no such window")
	ErrScriptTimeout          = errors.New("script timeout")
	ErrSessionNotCreated      = errors.New("session not created")
	ErrStaleElementReference  = errors.New("stale element reference")
	ErrDetachedShadowRoot     = errors.New("detached shadow root")
	ErrTimeout                = errors.New("timeout")
	ErrUnableToSetCookie      = errors.New("unable to set cookie")
	ErrUnableToCaptureScreen  = errors.New("unable to capture screen")
	ErrUnexpectedAlertOpen    = errors.New("unexpected alert open")
	ErrUnknownCommand         = errors.New("unknown command")
	ErrUnknownError           = errors.New("unknown error")
	ErrUnknownMethod          = errors.New("unknown method")
	ErrUnsupportedOperation   = errors.New("unsupported operation")

	ErrInvalidParameters = errors.New("invalid parameters")
	ErrFailedRequest     = errors.New("failed to execute request")
)

TODO: Write descriptions for all errors, based on https://www.w3.org/TR/webdriver/#errors

Functions

This section is empty.

Types

type Time

type Time struct {
	time.Duration
}

Time is a wrapper around time.Duration with improved JSON (un)marshalling.

func (*Time) MarshalJSON

func (t *Time) MarshalJSON() ([]byte, error)

MarshalJSON marshals Time.

func (*Time) String

func (t *Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals Time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL