Forum Discussion
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 ?
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