Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help..
#1
Not Solved Exclamation 
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:
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


Attached Files Image(s)
   
Reply


Messages In This Thread
Need help.. - by souvikghosh_diatm - 05-19-2011, 12:45 PM
RE: Need help.. - by sreekanth chilam - 05-19-2011, 02:45 PM
RE: Need help.. - by deepaksporty - 05-20-2011, 12:12 PM
RE: Need help.. - by surya_7mar - 05-24-2011, 02:33 PM
RE: Need help.. - by souvikghosh_diatm - 05-26-2011, 11:41 AM
RE: Need help.. - by souvikghosh_diatm - 05-30-2011, 12:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)