Skip to content

Commit a6027f8

Browse files
committed
Add SwipeBody
- Change dependency to culebratester-client >= 2.0.12 - Add _preload_content=False to ui_device_screenshot_get
1 parent ffa2aa8 commit a6027f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
classifiers=['Development Status :: 4 - Beta',
2323
'Intended Audience :: Developers',
2424
'License :: OSI Approved :: Apache Software License'],
25-
install_requires=['setuptools', 'requests', 'numpy', 'matplotlib', 'culebratester-client >= 2.0.6'],
25+
install_requires=['setuptools', 'requests', 'numpy', 'matplotlib', 'culebratester-client >= 2.0.12'],
2626
)

src/com/dtmilano/android/uiautomator/uiautomatorhelper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from __future__ import print_function
2222

23-
__version__ = '20.4.2'
23+
__version__ = '20.4.3'
2424

2525
import json
2626
import os
@@ -385,7 +385,7 @@ def swipe(self, **kwargs):
385385
"""
386386
if self.all(['start_x', 'start_y', 'end_x', 'end_y', 'steps'], kwargs):
387387
return self.uiAutomatorHelper.api_instance.ui_device_swipe_get(**kwargs)
388-
body = culebratester_client.Body(**kwargs)
388+
body = culebratester_client.SwipeBody(**kwargs)
389389
return self.uiAutomatorHelper.api_instance.ui_device_swipe_post(body=body)
390390

391391
def take_screenshot(self, scale=1.0, quality=90, **kwargs):
@@ -398,7 +398,7 @@ def take_screenshot(self, scale=1.0, quality=90, **kwargs):
398398
:param kwargs:
399399
:return:
400400
"""
401-
return self.uiAutomatorHelper.api_instance.ui_device_screenshot_get(scale=scale, quality=quality, **kwargs)
401+
return self.uiAutomatorHelper.api_instance.ui_device_screenshot_get(scale=scale, quality=quality, _preload_content=False, **kwargs)
402402

403403
def wait_for_idle(self, **kwargs):
404404
"""

0 commit comments

Comments
 (0)