mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 03:57:09 +00:00
feat(driver): add EraseText to the device driver surface
This commit is contained in:
1 parent
72055e5d9f
commit
41511a2a32
4 files changed
+49
-13
No files matched your search
@@ -20,6 +20,10 @@ type DeviceDriver interface {
|
||||
DoubleTap(ctx context.Context, x, y int) error
|
||||
DoubleTapSelector(ctx context.Context, selector string) error
|
||||
InputText(ctx context.Context, text string) error
|
||||
// EraseText deletes characterCount characters from the focused field.
|
||||
// The runner calls it before InputText so the verb replaces existing
|
||||
// content instead of appending to it.
|
||||
EraseText(ctx context.Context, characterCount int) error
|
||||
Swipe(ctx context.Context, fromX, fromY, toX, toY int, duration time.Duration) error
|
||||
PressKey(ctx context.Context, key string) error
|
||||
LongPress(ctx context.Context, x, y int) error
|
||||
|
||||
Reference in new issue
Block a user