mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(sidecar): add LongPress client method
This commit is contained in:
1 parent
55352f72c5
commit
fc54e86b17
1 file changed
+5
@@ -93,6 +93,11 @@ func (c *Client) Tap(ctx context.Context, x, y int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Client) LongPress(ctx context.Context, x, y int) error {
|
||||
_, err := c.stub.LongPress(ctx, &driverpb.Point{X: int32(x), Y: int32(y)})
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Client) TapSelector(ctx context.Context, selector string) error {
|
||||
_, err := c.stub.TapSelector(ctx, &driverpb.Selector{Value: selector})
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user