Micro Focus QTP (UFT) Forums

Full Version: How to fetch the coordinates of a button and perfom the action
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could you please refresh me with the below scenario?
Version : QTP 10 , O/S: Windows XP Service Pack 3
Hi,
Some data is displaying on the applicaion which is almost like Excel data

say for example 120 rows and 5 columns
My requirement is i will be searching for a string among the data available on the application.
it has to search on the application if it exists then it has to fetch the coordinates (x,y)


Note: All the data displayed on the application is not recongnised as "Java Table" or "Java Butoons" which is recongnosing as "Java Terminal View"


once i get the locaions then i will be performing the script like

Code:
JavaWindow("xxxxxx").JavaTerminalView("xxxxxxx").Click x,y
here x,y are the coordintes of the object

Note: I have done some work on this like
First:
Code:
object.GetTextLocaion
Second:
TextUtil.GetTextLocation

by using that i am getting the error message as "un recoverable error"

Please suggest me regarding this,

Thanks in advance,
Venkat.Batchu