Skip to content

Commit 41fd834

Browse files
authored
feat: swipe ext function
1 parent 74f9183 commit 41fd834

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hmdriver2/driver.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ def swipe(self, x1, y1, x2, y2, speed=2000):
313313
api = "Driver.swipe"
314314
self._invoke(api, args=[point1.x, point1.y, point2.x, point2.y, speed])
315315

316+
@cached_property
317+
def swipe_ext(self):
318+
from ._swipe import SwipeExt
319+
return SwipeExt(self)
320+
316321
@delay
317322
def input_text(self, text: str):
318323
"""

0 commit comments

Comments
 (0)