05-19-2011, 12:45 PM
I am using QTP 11 demo version and have one GWT 2.4 application. Here one check box is identified by QTP as an Image. The problem is that i am unable to make it checked by QTP. i have applied following different approach but i am still not successful. The only unique property for that image i found its "file name" and "Index". but its not be identified by only index value. and the file name is changing on different run session. But the interesting thing is that if i add that object in repository and drag drop it on action then its working absolutely fine. But in DP aproach its not working. Please refer my attached screen shot for better understanding.
I have applied:
but it does not works. No runtime error found but click method not make it as checked.
also applied-
But it also not works....No error found but check box not checked.
If i drag drop the object from OR then the following code is generating--
Any solution or suggestion will be appreciated...Mail me on - souvikghosh_diatm@rediffmail.com
I have applied:
Code:
Browser("CreationTime:=0").Page("title:=DIBAC").Image("file name:=unchecked.png","index:=46").Click
but it does not works. No runtime error found but click method not make it as checked.
also applied-
Code:
Set obj = CreateObject ("Mercury.DeviceReplay")
absx =Browser("CreationTime:=0").Page("title:=DIBAC").Image("file name:=unchecked.png","index:=46").GetROProperty("abs_x")
absy = Browser("CreationTime:=0").Page("title:=DIBAC").Image("file name:=unchecked.png","index:=46").GetROProperty("abs_y")
obj.MouseMove absx, absy
obj.MouseClick absx, absy, LEFT_MOUSE_BUTTON
But it also not works....No error found but check box not checked.
If i drag drop the object from OR then the following code is generating--
Code:
Browser("DIBAC").Page("DIBAC").Image("blank").Click
Any solution or suggestion will be appreciated...Mail me on - souvikghosh_diatm@rediffmail.com