preaction

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package crawlerx @Author bcy2007 2024/4/2 14:44

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreAct

func PreAct(page *rod.Page, action *PreAction) error

func PreActs

func PreActs(page *rod.Page, actions []*PreAction) error

Types

type ActionType

type ActionType string
const (
	HoverAction   ActionType = "hover"
	InputAction   ActionType = "input"
	ClickAction   ActionType = "click"
	SelectAction  ActionType = "select"
	SetFileAction ActionType = "setFile"
)

type PreAction

type PreAction struct {
	Action   ActionType
	Selector string
	Params   string
}

func (PreAction) String

func (action PreAction) String() string

type PreActionJson

type PreActionJson struct {
	Action   string `json:"action,omitempty"`
	Selector string `json:"selector,omitempty"`
	Params   string `json:"params,omitempty"`
}

Jump to

Keyboard shortcuts

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