07-18-2011, 05:56 PM
does the property of that control (on which you are working, that javaObject) uniquely identified by QTP in each session????
If it is, then i guess u will get the co-ordinate of that particular object in run time which is absolutely resolution interruption free....Whatever the resolution will be, it will return the x and y co-ordinate value on basis of that particular resolution where the run is going on.....after getting the co-ordinate in run time, then do click on that particular place......
i am giving u a sample code...hope it will work....And let me know whether ur problem got solved or not after this..........
----------------
Thanx
If it is, then i guess u will get the co-ordinate of that particular object in run time which is absolutely resolution interruption free....Whatever the resolution will be, it will return the x and y co-ordinate value on basis of that particular resolution where the run is going on.....after getting the co-ordinate in run time, then do click on that particular place......
i am giving u a sample code...hope it will work....And let me know whether ur problem got solved or not after this..........
Code:
Set obj = CreateObject ("Mercury.DeviceReplay")
absx =JavaWindow("Session A - A - TL5B0570").JavaObject("AccessibleScreenText").GetROProperty("abs_x")
absy =JavaWindow("Session A - A - TL5B0570").JavaObject("AccessibleScreenText").GetROProperty("abs_y")
obj.MouseMove absx, absy
obj.MouseClick absx, absy, 0
----------------
Thanx