actions

package
v0.0.0-...-f5a534b Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MouseButtonLeft   = 0
	MouseButtonMiddle = 1
	MouseButtonRight  = 2
)
View Source
const (
	KEY           = "key"
	POINTER       = "pointer"
	POINTER_MOUSE = "mouse"
	POINTER_TOUCH = "touch"
	POINTER_PEN   = "pen"
	PAUSE         = "pause"
)
View Source
const DEFAULT_MOVE_DURATION = 250

Variables

Functions

This section is empty.

Types

type ActionBuilder

type ActionBuilder struct {
	// contains filtered or unexported fields
}

func NewActionBuilder

func NewActionBuilder(driver selenium.WebDriver) *ActionBuilder

type Actions

type Actions struct {
	// contains filtered or unexported fields
}

func ActionChains

func ActionChains(driver selenium.WebDriver) *Actions

func (*Actions) Click

func (ac *Actions) Click(on_element interface{}) *Actions

func (*Actions) Click_and_hold

func (ac *Actions) Click_and_hold(on_element interface{}) *Actions

func (*Actions) Context_click

func (ac *Actions) Context_click(on_element interface{}) *Actions

func (*Actions) Double_click

func (ac *Actions) Double_click(on_element interface{}) *Actions

func (*Actions) Drag_and_drop

func (ac *Actions) Drag_and_drop(source, target selenium.WebElement) *Actions

func (*Actions) Drag_and_drop_by_offset

func (ac *Actions) Drag_and_drop_by_offset(source selenium.WebElement, xoffset, yoffset int) *Actions

func (*Actions) Key_down

func (ac *Actions) Key_down(text string, element selenium.WebElement) *Actions

func (*Actions) Key_up

func (ac *Actions) Key_up(text string, element selenium.WebElement) *Actions

func (*Actions) Move_by_offset

func (ac *Actions) Move_by_offset(xoffset, yoffset int) *Actions

func (*Actions) Move_to_element

func (ac *Actions) Move_to_element(to_element selenium.WebElement) *Actions

func (*Actions) Move_to_element_with_offset

func (ac *Actions) Move_to_element_with_offset(to_element selenium.WebElement, xoffset, yoffset int) *Actions

func (*Actions) NewActionChains

func (ac *Actions) NewActionChains() *Actions

func (*Actions) Pause

func (ac *Actions) Pause(seconds int) *Actions

func (*Actions) Perform

func (ac *Actions) Perform()

func (*Actions) Release

func (ac *Actions) Release(on_element interface{}) *Actions

func (*Actions) Reset_actions

func (ac *Actions) Reset_actions()

func (*Actions) Send_keys

func (ac *Actions) Send_keys(text string) *Actions

func (*Actions) Send_keys_to_element

func (ac *Actions) Send_keys_to_element(element selenium.WebElement, text string) *Actions

type InputDevice

type InputDevice struct {
	// contains filtered or unexported fields
}

func NewInputDevice

func NewInputDevice(deviceName string) *InputDevice

type Interaction

type Interaction struct {
	// contains filtered or unexported fields
}

func NewInteraction

func NewInteraction(sou interface{}) *Interaction

type KeyActions

type KeyActions struct {
	Interaction
	// contains filtered or unexported fields
}

func NewKeyActions

func NewKeyActions(source interface{}) *KeyActions

type KeyInput

type KeyInput struct {
	InputDevice
	// contains filtered or unexported fields
}

func NewKeyInput

func NewKeyInput(name string) *KeyInput

func (*KeyInput) Encode

func (ki *KeyInput) Encode() (encoded map[string]interface{})

type MouseButton

type MouseButton int

type Pause

type Pause struct {
	Interaction
	// contains filtered or unexported fields
}

func NewPause

func NewPause(sou interface{}, dur int) *Pause

type PointerActions

type PointerActions struct {
	Interaction
	// contains filtered or unexported fields
}

func NewPointerActions

func NewPointerActions(source interface{}) *PointerActions

type PointerInput

type PointerInput struct {
	InputDevice
	// contains filtered or unexported fields
}

func NewPointerInput

func NewPointerInput(kind string, name string) *PointerInput

func (*PointerInput) Create_pointer_down

func (pi *PointerInput) Create_pointer_down(button MouseButton)

func (*PointerInput) Create_pointer_up

func (pi *PointerInput) Create_pointer_up(button MouseButton)

func (*PointerInput) Encode

func (pi *PointerInput) Encode() (encoded map[string]interface{})

Jump to

Keyboard shortcuts

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