Documentation ¶
Index ¶
- Constants
- type Keyboard
- func (k *Keyboard) Down(ctx context.Context, char string) error
- func (k *Keyboard) Press(ctx context.Context, keys []string, count int, delay time.Duration) error
- func (k *Keyboard) Type(ctx context.Context, text string, delay time.Duration) error
- func (k *Keyboard) Up(ctx context.Context, char string) error
- type KeyboardKey
- type KeyboardLocation
- type KeyboardModifier
- type Manager
- func (m *Manager) Blur(ctx context.Context, objectID runtime.RemoteObjectID) error
- func (m *Manager) BlurBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
- func (m *Manager) Clear(ctx context.Context, objectID runtime.RemoteObjectID) error
- func (m *Manager) ClearBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
- func (m *Manager) ClearByXY(ctx context.Context, points Quad) error
- func (m *Manager) Click(ctx context.Context, objectID runtime.RemoteObjectID, count int) error
- func (m *Manager) ClickBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, ...) error
- func (m *Manager) Focus(ctx context.Context, objectID runtime.RemoteObjectID) error
- func (m *Manager) FocusBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
- func (m *Manager) Keyboard() *Keyboard
- func (m *Manager) Mouse() *Mouse
- func (m *Manager) MoveMouse(ctx context.Context, objectID runtime.RemoteObjectID) error
- func (m *Manager) MoveMouseBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
- func (m *Manager) MoveMouseByXY(ctx context.Context, xv, yv values.Float) error
- func (m *Manager) Press(ctx context.Context, keys []string, count int) error
- func (m *Manager) PressBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, ...) error
- func (m *Manager) ScrollBottom(ctx context.Context, options drivers.ScrollOptions) error
- func (m *Manager) ScrollByXY(ctx context.Context, options drivers.ScrollOptions) error
- func (m *Manager) ScrollIntoView(ctx context.Context, id runtime.RemoteObjectID, options drivers.ScrollOptions) error
- func (m *Manager) ScrollIntoViewBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, ...) error
- func (m *Manager) ScrollTop(ctx context.Context, options drivers.ScrollOptions) error
- func (m *Manager) Select(ctx context.Context, id runtime.RemoteObjectID, value *values.Array) (*values.Array, error)
- func (m *Manager) SelectBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, ...) (*values.Array, error)
- func (m *Manager) Type(ctx context.Context, objectID runtime.RemoteObjectID, params TypeParams) error
- func (m *Manager) TypeBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, ...) error
- type Mouse
- func (m *Mouse) Click(ctx context.Context, x, y float64, delay time.Duration) error
- func (m *Mouse) ClickWithCount(ctx context.Context, x, y float64, delay time.Duration, count int) error
- func (m *Mouse) Down(ctx context.Context, button input.MouseButton) error
- func (m *Mouse) DownWithCount(ctx context.Context, button input.MouseButton, count int) error
- func (m *Mouse) Move(ctx context.Context, x, y float64) error
- func (m *Mouse) MoveBySteps(ctx context.Context, x, y float64, steps int) error
- func (m *Mouse) Up(ctx context.Context, button input.MouseButton) error
- func (m *Mouse) UpWithCount(ctx context.Context, button input.MouseButton, count int) error
- type Quad
- type TypeParams
Constants ¶
View Source
const ( KeyboardModifierNone KeyboardModifier = 0 KeyboardModifierAlt KeyboardModifier = 1 KeyboardModifierCtrl KeyboardModifier = 2 KeyboardModifierCmd KeyboardModifier = 4 KeyboardModifierShift KeyboardModifier = 8 // 1=Left, 2=Right KeyboardLocationNone KeyboardLocation = 0 KeyboardLocationLeft KeyboardLocation = 1 KeyboardLocationRight KeyboardLocation = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
func NewKeyboard ¶
type KeyboardKey ¶ added in v0.9.0
type KeyboardKey struct { KeyCode int Key string Code string Modifier KeyboardModifier Location KeyboardLocation }
type KeyboardLocation ¶ added in v0.9.0
type KeyboardLocation int
type KeyboardModifier ¶ added in v0.9.0
type KeyboardModifier int
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) BlurBySelector ¶ added in v0.9.0
func (m *Manager) BlurBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
func (*Manager) ClearBySelector ¶ added in v0.9.0
func (m *Manager) ClearBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
func (*Manager) ClickBySelector ¶
func (m *Manager) ClickBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, count values.Int) error
func (*Manager) FocusBySelector ¶
func (m *Manager) FocusBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
func (*Manager) MoveMouseBySelector ¶
func (m *Manager) MoveMouseBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector) error
func (*Manager) MoveMouseByXY ¶
func (*Manager) PressBySelector ¶ added in v0.15.0
func (m *Manager) PressBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, keys []string, count int) error
func (*Manager) ScrollBottom ¶
func (*Manager) ScrollByXY ¶
func (*Manager) ScrollIntoView ¶
func (m *Manager) ScrollIntoView(ctx context.Context, id runtime.RemoteObjectID, options drivers.ScrollOptions) error
func (*Manager) ScrollIntoViewBySelector ¶
func (m *Manager) ScrollIntoViewBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, options drivers.ScrollOptions) error
func (*Manager) SelectBySelector ¶
func (*Manager) Type ¶
func (m *Manager) Type(ctx context.Context, objectID runtime.RemoteObjectID, params TypeParams) error
func (*Manager) TypeBySelector ¶
func (m *Manager) TypeBySelector(ctx context.Context, id runtime.RemoteObjectID, selector drivers.QuerySelector, params TypeParams) error
type Mouse ¶
type Mouse struct {
// contains filtered or unexported fields
}
func (*Mouse) ClickWithCount ¶ added in v0.9.0
func (*Mouse) DownWithCount ¶ added in v0.9.0
func (*Mouse) MoveBySteps ¶
func (*Mouse) UpWithCount ¶ added in v0.9.0
type Quad ¶
Click to show internal directories.
Click to hide internal directories.