I am unable to reconise one webimage ....that i need to click ...This is a search and when i search for a particular name , i will get the searched name retrieved and if i need to open that username details, i will have to click on the image that QTP is not able to recognise since there are multiple icons of hte same kind ..since the search will get 10 users so what i have done is i have created a virtual table so that i can pull up that particular user and then i need to click on that iamge ...this is not being possible for me ...is there a way to do this thanks

Showing Answers 1 - 2 of 2 Answers

Hi,first of all u have to record the whole action ,after that change the script by adding descriptive properties in the script where the click event has been added for thatt perticular webimage.By using the If statement u can make that perticular web image clicked.for ex:-'get the row count of the weblist and store it in a variable say rnfor i = 0 to rnuser_det=Browser("abc").Page("xyz").WebList("paging").GetROProperty("value")'to get the username from the weblistif user_det = "hema" thenBrowser("abc").Page("xyz").Webbutton("type:=button","html tag:=INPUT","index:="&i).click'to click that perticular webbutton with that perticular index no.exit forend if next Try this i hope it will work

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions