Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can not find a Button
#1
Not Solved
Using QTP 9.5

When running my script, I get a second web page window that Opens. I select a link/button/image (first oof 8) and the window closes taking values with to populate the first web screen.

Recording QTP, selecting the link/button/image i get the Click operation, but on Run, the link/button/image is not found. Using Spy, I am told that the 8 link/buttgons are all images. the image has the name of GridView1$ctl02$btnSelect, and image type is Image Button. But Click or Submit operations can not correctly find this button/link/image to select it.

How can I find and select this image?

thx for any advice
Reply
#2
Not Solved
Hi,

Try the below code's to click the Image,

Code:
Browser("creationtime:=0").Page("micclass:=Page").Image("name:=GridView1.*","image type:=Image Button").FireEvent  "onclick"

(OR)

Code:
Browser("creationtime:=0").Page("micclass:=Page").Image("name:=GridView1.*","image type:=Image Button").Click "1","1",micLeftBtn

(OR)

Code:
Browser("creationtime:=0").Page("micclass:=Page").Image("name:=GridView1.*","image type:=Image Button").Object.Click


If the above code doesnt work, please check if the Image Object Properties are correct.

Thanks,
Vinod
Reply
#3
Not Solved
Thx ;-) I will try these. Thank youuuu
Reply
#4
Not Solved
Ahhh, nope no luck.

Tx for trying though. ;-)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)