Forum Discussion
The "Picture" method is not a method of the Process object... You're trying to call the "Picture" method of a process object so, since that is not a valid method, you get that error. If you want to take a picture of some part of your application, you need to find some sort of window or visual object to call the Picture method on....
- maddy_jay7 years agoNew Contributor
Thanks for your valuable input !!
I tried with window also, still get the same error.
Sample_object = Sys.Process("vncviewer_latest", 2).Window("vwr::CDesktopWin", "161.65.441.25 - VNC Viewer", 1)
But it works, if I saved the image in hard disk and access it by using Path.
fin = Image.open("D:\\Sample\\demo.jpg")
I think Python Imaging Library does not accept the Image Format provided by Picture() method in Testcomplete.
Any suggestion to overcome this problem ?
- tristaanogre7 years agoEsteemed Contributor
you are correct. The "Picture" object returned by the Picture method of a desktop object is not an image file like a jpg, png, gif, bmp, etc... To actually create an image for you to process, you'll want to first call the "SaveToFile" method off of the Picture object (which you did) to create the corresponding image which you can then access as you would any other image.
Here's the reference for the TestComplete "Picture" object...
https://support.smartbear.com/testcomplete/docs/reference/program-objects/picture/index.html - baxatob7 years agoCommunity Hero
already replied by tristaanogre
Related Content
- 3 years agoIuliaVascan
- 12 months agoclaudio
- 2 years agolalit_singh
- 3 years agomschofer
Recent Discussions
- 55 minutes agoSlickRick
- 2 hours agoSlickRick
Name Mapping Issue
Solved4 hours agokgreger1