Skip to content

Commit

Permalink
remove ios log
Browse files Browse the repository at this point in the history
(cherry picked from commit eb01f7b)
  • Loading branch information
yimelia committed Apr 1, 2021
1 parent 6bdb49d commit 442c659
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions airtest/core/ios/ios.py
Expand Up @@ -324,10 +324,7 @@ def touch(self, pos, duration=0.01):
"""
# trans pos of click, pos can be percentage or real coordinate
LOGGING.info("touch original-postion at (%s, %s)", pos[0], pos[1])
x, y = self._transform_xy(pos)

LOGGING.info("touch last-postion at (%s, %s)", x, y)
self.driver.click(x, y, duration)

def double_click(self, pos):
Expand All @@ -350,11 +347,8 @@ def swipe(self, fpos, tpos, duration=0, *args, **kwargs):
>>> swipe((0.2, 0.5), (0.8, 0.5))
"""

fx, fy = self._transform_xy(fpos)
tx, ty = self._transform_xy(tpos)

LOGGING.info("swipe postion1 (%s, %s) to postion2 (%s, %s), for duration: %s", fx, fy, tx, ty, duration)
self.driver.swipe(fx, fy, tx, ty, duration)

def keyevent(self, keyname, **kwargs):
Expand Down

0 comments on commit 442c659

Please sign in to comment.