summaryrefslogtreecommitdiff
path: root/vendor/github.com/playwright-community/playwright-go/input.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-12 16:33:27 -0600
committermo khan <mo@mokhan.ca>2025-05-12 16:33:27 -0600
commit29b59441a4bbada64d8d07bd2609f15dfde670e5 (patch)
tree3b3583edb261279cfcdfd9eed904d118c4bf67b1 /vendor/github.com/playwright-community/playwright-go/input.go
parent78ccd9a4312eab7e11da4413733a12953f88a4fe (diff)
test: remove UI tests
Diffstat (limited to 'vendor/github.com/playwright-community/playwright-go/input.go')
-rw-r--r--vendor/github.com/playwright-community/playwright-go/input.go117
1 files changed, 0 insertions, 117 deletions
diff --git a/vendor/github.com/playwright-community/playwright-go/input.go b/vendor/github.com/playwright-community/playwright-go/input.go
deleted file mode 100644
index d6e4ba4..0000000
--- a/vendor/github.com/playwright-community/playwright-go/input.go
+++ /dev/null
@@ -1,117 +0,0 @@
-package playwright
-
-type mouseImpl struct {
- channel *channel
-}
-
-func newMouse(channel *channel) *mouseImpl {
- return &mouseImpl{
- channel: channel,
- }
-}
-
-func (m *mouseImpl) Move(x float64, y float64, options ...MouseMoveOptions) error {
- _, err := m.channel.Send("mouseMove", map[string]interface{}{
- "x": x,
- "y": y,
- }, options)
- return err
-}
-
-func (m *mouseImpl) Down(options ...MouseDownOptions) error {
- _, err := m.channel.Send("mouseDown", options)
- return err
-}
-
-func (m *mouseImpl) Up(options ...MouseUpOptions) error {
- _, err := m.channel.Send("mouseUp", options)
- return err
-}
-
-func (m *mouseImpl) Click(x, y float64, options ...MouseClickOptions) error {
- _, err := m.channel.Send("mouseClick", map[string]interface{}{
- "x": x,
- "y": y,
- }, options)
- return err
-}
-
-func (m *mouseImpl) Dblclick(x, y float64, options ...MouseDblclickOptions) error {
- var option MouseDblclickOptions
- if len(options) == 1 {
- option = options[0]
- }
- return m.Click(x, y, MouseClickOptions{
- ClickCount: Int(2),
- Button: option.Button,
- Delay: option.Delay,
- })
-}
-
-func (m *mouseImpl) Wheel(deltaX, deltaY float64) error {
- _, err := m.channel.Send("mouseWheel", map[string]interface{}{
- "deltaX": deltaX,
- "deltaY": deltaY,
- })
- return err
-}
-
-type keyboardImpl struct {
- channel *channel
-}
-
-func newKeyboard(channel *channel) *keyboardImpl {
- return &keyboardImpl{
- channel: channel,
- }
-}
-
-func (m *keyboardImpl) Down(key string) error {
- _, err := m.channel.Send("keyboardDown", map[string]interface{}{
- "key": key,
- })
- return err
-}
-
-func (m *keyboardImpl) Up(key string) error {
- _, err := m.channel.Send("keyboardUp", map[string]interface{}{
- "key": key,
- })
- return err
-}
-
-func (m *keyboardImpl) InsertText(text string) error {
- _, err := m.channel.Send("keyboardInsertText", map[string]interface{}{
- "text": text,
- })
- return err
-}
-
-func (m *keyboardImpl) Type(text string, options ...KeyboardTypeOptions) error {
- _, err := m.channel.Send("keyboardInsertText", map[string]interface{}{
- "text": text,
- }, options)
- return err
-}
-
-func (m *keyboardImpl) Press(key string, options ...KeyboardPressOptions) error {
- _, err := m.channel.Send("keyboardPress", map[string]interface{}{
- "key": key,
- }, options)
- return err
-}
-
-type touchscreenImpl struct {
- channel *channel
-}
-
-func newTouchscreen(channel *channel) *touchscreenImpl {
- return &touchscreenImpl{
- channel: channel,
- }
-}
-
-func (t *touchscreenImpl) Tap(x int, y int) error {
- _, err := t.channel.Send("touchscreenTap", map[string]interface{}{"x": x, "y": y})
- return err
-}