selector

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind string
const (
	KindDisplayID Kind = "display_id"
	KindCSS       Kind = "css"
	KindXPath     Kind = "xpath"
)

type Selector

type Selector struct {
	Kind      Kind
	Raw       string
	DisplayID int
	Query     string
}

func Parse

func Parse(input string) (Selector, error)

func (Selector) IsCSS

func (s Selector) IsCSS() bool

func (Selector) IsDisplayID

func (s Selector) IsDisplayID() bool

func (Selector) IsXPath

func (s Selector) IsXPath() bool

Jump to

Keyboard shortcuts

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