Skip to content

Commit 95da40a

Browse files
committed
viewclient: fix reconnect argument passed to takeSnapshot()
- Version 5.4.3
1 parent c1741aa commit 95da40a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

AndroidViewClient/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='androidviewclient',
6-
version='5.4.2',
6+
version='5.4.3',
77
description='''AndroidViewClient is a 100% pure python tool that
88
simplifies test script creation providing higher level operations and the ability of
99
obtaining the tree of Views present at any given moment on the device or emulator screen.

AndroidViewClient/src/com/dtmilano/android/viewclient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@author: Diego Torres Milano
1919
'''
2020

21-
__version__ = '5.4.1'
21+
__version__ = '5.4.3'
2222

2323
import sys
2424
import warnings
@@ -922,8 +922,8 @@ def writeImageToFile(self, filename, format="PNG"):
922922
((l, t), (r, b)) = self.getCoords()
923923
box = (l, t, r, b)
924924
if DEBUG:
925-
print >> sys.stderr, "writeImageToFile: cropping", box
926-
self.device.takeSnapshot().crop(box).save(filename, format)
925+
print >> sys.stderr, "writeImageToFile: cropping", box, " reconnect=", self.device.reconnect
926+
self.device.takeSnapshot(reconnect=self.device.reconnect).crop(box).save(filename, format)
927927

928928
def __smallStr__(self):
929929
__str = unicode("View[", 'utf-8', 'replace')

0 commit comments

Comments
 (0)