Documentation
¶
Index ¶
- func CreateLocatorMap(source string) (map[string][]string, error)
- func GetOptimalXPath(doc Document, domNode Node) string
- func IsValidXPath(xpath, dom string) (bool, error)
- func MinifySource(source string) (*types.ElementSpec, error)
- func PrintLocatrs(locatrs []string)
- func PrintXmlTree(node *html.Node, depth int)
- type Document
- type HTMLDoc
- type HTMLNode
- func (n *HTMLNode) ChildNodes() []Node
- func (n *HTMLNode) Equal(n1 Node) bool
- func (n *HTMLNode) GetAttribute(key string) string
- func (n *HTMLNode) GetParent() Node
- func (n *HTMLNode) HasParent() bool
- func (n *HTMLNode) Index() int
- func (n HTMLNode) IsElement() bool
- func (n HTMLNode) TagName() string
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOptimalXPath ¶
func IsValidXPath ¶
func MinifySource ¶
func MinifySource(source string) (*types.ElementSpec, error)
Types ¶
type HTMLNode ¶
type HTMLNode struct {
// contains filtered or unexported fields
}
func NewHTMLNode ¶
func (*HTMLNode) ChildNodes ¶
func (*HTMLNode) GetAttribute ¶
Click to show internal directories.
Click to hide internal directories.