Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP - Code to select a link
#2
Solved: 11 Years, 3 Months, 3 Weeks ago Exclamation 
Hi...

I got the answer...Try this

Code:
Dim obj
Set a=Description.Create
a("html tag").value = "A"
a("micclass").value="Link"
a("innerhtml").value="Login"
set obj = Browser("Micclass:=Browser").Page("Micclass:=Page").ChildObjects(a)
x= obj.count
For i=0 to x-1
obj(i).click
Next



Hi..

Got a solution...Try this...

Code:
Dim obj
Set a=Description.Create
a("html tag").value = "A"
a("micclass").value="Link"
a("innerhtml").value="Login"
set obj = Browser("Micclass:=Browser").Page("Micclass:=Page").ChildObjects(a)
x= obj.count
For i=0 to x-1
obj(i).click
Next
Reply


Messages In This Thread
QTP - Code to select a link - by Unleash Rajesh - 06-21-2011, 05:10 PM
RE: QTP - Code to select a link - by Unleash Rajesh - 06-23-2011, 03:24 PM
RE: QTP - Code to select a link - by shivu.hanu - 01-03-2012, 05:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to select value from google search box dropdown +QTP prajyot 0 2,902 06-28-2017, 06:30 PM
Last Post: prajyot
  how to randomly Select any category link and randomly click on one of its options ? sharavan 0 2,930 11-18-2014, 12:24 AM
Last Post: sharavan
  Date Picker Issue - Unable to select date link dynamically rajkumarsm 1 5,174 09-20-2014, 09:31 AM
Last Post: rajkumarsm
  Do you think it professional QTP code ? learnqtp 0 2,960 06-21-2012, 03:48 AM
Last Post: learnqtp
  Output is different from two different machines for the same block of code in QTP. bdash_10 0 2,076 04-13-2012, 03:38 PM
Last Post: bdash_10

Forum Jump:


Users browsing this thread: 1 Guest(s)