Documentation ¶
Index ¶
- Constants
- Variables
- type ActionBuilder
- type Actions
- func (ac *Actions) Click(on_element interface{}) *Actions
- func (ac *Actions) Click_and_hold(on_element interface{}) *Actions
- func (ac *Actions) Context_click(on_element interface{}) *Actions
- func (ac *Actions) Double_click(on_element interface{}) *Actions
- func (ac *Actions) Drag_and_drop(source, target selenium.WebElement) *Actions
- func (ac *Actions) Drag_and_drop_by_offset(source selenium.WebElement, xoffset, yoffset int) *Actions
- func (ac *Actions) Key_down(text string, element selenium.WebElement) *Actions
- func (ac *Actions) Key_up(text string, element selenium.WebElement) *Actions
- func (ac *Actions) Move_by_offset(xoffset, yoffset int) *Actions
- func (ac *Actions) Move_to_element(to_element selenium.WebElement) *Actions
- func (ac *Actions) Move_to_element_with_offset(to_element selenium.WebElement, xoffset, yoffset int) *Actions
- func (ac *Actions) NewActionChains() *Actions
- func (ac *Actions) Pause(seconds int) *Actions
- func (ac *Actions) Perform()
- func (ac *Actions) Release(on_element interface{}) *Actions
- func (ac *Actions) Reset_actions()
- func (ac *Actions) Send_keys(text string) *Actions
- func (ac *Actions) Send_keys_to_element(element selenium.WebElement, text string) *Actions
- type InputDevice
- type Interaction
- type KeyActions
- type KeyInput
- type MouseButton
- type Pause
- type PointerActions
- type PointerInput
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 ¶
View Source
var POINTER_KINDS = [3]string{POINTER_MOUSE, POINTER_TOUCH, POINTER_PEN}
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 (*Actions) Click_and_hold ¶
func (*Actions) Context_click ¶
func (*Actions) Double_click ¶
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 (*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 (*Actions) Reset_actions ¶
func (ac *Actions) Reset_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 ¶
type MouseButton ¶
type MouseButton int
type Pause ¶
type Pause struct { Interaction // contains filtered or unexported fields }
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{})
Click to show internal directories.
Click to hide internal directories.