Skip to content

Commit 8ec49cb

Browse files
committed
Make tap duration be handled as ms, not s
1 parent e4edf35 commit 8ec49cb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

appium/webdriver/webdriver.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def tap(self, positions, duration=None):
196196
x = positions[0][0]
197197
y = positions[0][1]
198198
if duration:
199-
duration = duration
200199
action.long_press(x=x, y=y, duration=duration).release()
201200
else:
202201
action.tap(x=x, y=y)
@@ -208,7 +207,6 @@ def tap(self, positions, duration=None):
208207
y = position[1]
209208
action = TouchAction(self)
210209
if duration:
211-
duration *= 1000 # we take seconds, but send milliseconds
212210
action.long_press(x=x, y=y, duration=duration).release()
213211
else:
214212
action.press(x=x, y=y).release()

0 commit comments

Comments
 (0)