Any easiest way to get the parameters for TestObj.Picture(ClientX, ClientY, Width, Height, Mouse)SOLVED
Any easiest way to get the parameters for TestObj.Picture(ClientX, ClientY, Width, Height, Mouse)
I want to capture pic for a particular area of the object while the test run, it is used to recognize the text in that particular area of the object
please tell me how to get these params
The Main goal is I want to recognize the particular number in the highlighted area, in that picture
Solved! Go to Solution.
Are you saying that Object Spy tool is not able to identify each of the UI objects? I'm not sure what your application is build in, but try adding the WndClass name to MSAA in your project settings, and TC might be able to identify each of the UI objects.
Have you read through Testing Delphi Applications ? If yes, and you have not found a solution, then try using Optical Character Recognition or Image-Based Testing
Did you see my reference to Image-Based Testing?
First we will find the coordinate of x and y using view object option this window will help to find the coordinates relative to the object and then you need to specify the hight and width of rectangle
In script (python)
picObj = Object.Picture(1012, 24, 1144, 24)
NeededText = OCR.regonize(picObj).fullText