Question

vc.writeImageToFile("C:\image.png") code gives the following error:

File "C:\AndroidViewClientMaster\AndroidViewClient\src\com\dtmilano\android\viewclient.py", line 2309, in writeImageToFile self.device.takeSnapshot().writeToFile(filename, format)

File "C:\Python27\lib\site-packages\PIL\Image.py", line 512, in getattr raise AttributeError(name)

AttributeError: writeToFile

What is wrong?

Was it helpful?

Solution

vc.writeImageToFile("C:\image.png")

should work correctly on AndroidViewClient >= 5.4.7

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top