Any easiest way to get the parameters for TestObj.Picture(ClientX, ClientY, Width, Height, Mouse)
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
ClientX,
ClientY,
Width,
Height,
Mouse
The Main goal is I want to recognize the particular number in the highlighted area, in that picture
Solved! Go to Solution.
- Labels:
-
Desktop Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you see my reference to Image-Based Testing?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
