문제

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?

도움이 되었습니까?

해결책

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

should work correctly on AndroidViewClient >= 5.4.7

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top