Skip to content

Commit

Permalink
viewclient: fix reconnect argument passed to takeSnapshot()
Browse files Browse the repository at this point in the history
- Version 5.4.3
  • Loading branch information
dtmilano committed Mar 18, 2014
1 parent c1741aa commit 95da40a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AndroidViewClient/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages

setup(name='androidviewclient',
version='5.4.2',
version='5.4.3',
description='''AndroidViewClient is a 100% pure python tool that
simplifies test script creation providing higher level operations and the ability of
obtaining the tree of Views present at any given moment on the device or emulator screen.
Expand Down
6 changes: 3 additions & 3 deletions AndroidViewClient/src/com/dtmilano/android/viewclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@author: Diego Torres Milano
'''

__version__ = '5.4.1'
__version__ = '5.4.3'

import sys
import warnings
Expand Down Expand Up @@ -922,8 +922,8 @@ def writeImageToFile(self, filename, format="PNG"):
((l, t), (r, b)) = self.getCoords()
box = (l, t, r, b)
if DEBUG:
print >> sys.stderr, "writeImageToFile: cropping", box
self.device.takeSnapshot().crop(box).save(filename, format)
print >> sys.stderr, "writeImageToFile: cropping", box, " reconnect=", self.device.reconnect
self.device.takeSnapshot(reconnect=self.device.reconnect).crop(box).save(filename, format)

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

0 comments on commit 95da40a

Please sign in to comment.