Permalink
Browse files

Fixed ViewClient.writeToFile() problem

- Use PIL's Image.save() to save file
- Version 5.4.7
  • Loading branch information...
1 parent c758f2e commit 9b12f7fa0248c9e28ad454b336c4dc356678d2af @dtmilano committed May 5, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 AndroidViewClient/setup.py
  2. +2 −2 AndroidViewClient/src/com/dtmilano/android/viewclient.py
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
setup(name='androidviewclient',
- version='5.4.6',
+ version='5.4.7',
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.
@@ -18,7 +18,7 @@
@author: Diego Torres Milano
'''
-__version__ = '5.4.6'
+__version__ = '5.4.7'
import sys
import warnings
@@ -2306,7 +2306,7 @@ def writeImageToFile(self, filename, format="PNG"):
filename = os.path.join(filename, self.serialno + '.' + format.lower())
if DEBUG:
print >> sys.stderr, "writeImageToFile: saving image to '%s' in %s format" % (filename, format)
- self.device.takeSnapshot().writeToFile(filename, format)
+ self.device.takeSnapshot().save(filename, format)
@staticmethod
def __pickleable(tree):

0 comments on commit 9b12f7f

Please sign in to comment.