dom

package
v0.12.17 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsElementNotFoundErr

func IsElementNotFoundErr(err error) bool

func TooManyMatchesErr

func TooManyMatchesErr(selector Selector, want int, have int) error

Types

type Dimensions

type Dimensions struct {
	Width  int `json:"width"`
	Height int `json:"height"`
	Top    int `json:"top"`
	Left   int `json:"left"`
	Right  int `json:"right"`
	Bottom int `json:"bottom"`
}

type Element

type Element struct {
	ID         string                 `json:"id"`
	Name       string                 `json:"name"`
	Namespace  string                 `json:"namespace,omitempty"`
	Attributes map[string]interface{} `json:"attributes"`
	Text       string                 `json:"text,omitempty"`
}

type Selector

type Selector string

func (Selector) GetAnnotation

func (self Selector) GetAnnotation() (string, string, error)

func (Selector) IsAnnotated

func (self Selector) IsAnnotated() bool

func (Selector) IsNone

func (self Selector) IsNone() bool

func (*Selector) String

func (self *Selector) String() string

Jump to

Keyboard shortcuts

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