Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to click all the links on page and verify respective contents
#5
Not Solved
Hi KavitaPriya,

I tried it with following script.
Code:
Set oLinks = Description.Create
oLinks("micclass").value = "Link"
set objLinks = Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").ChildObjects(oLinks)
LinkCount = objLinks.Count
msgbox LinkCount
For i = 0 to LinkCount-1step 1
linkname=objLinks(i).getroproperty("name")
msgbox linkname,0,"Current link is"
objLinks(cint(i)).Click
next

But
I am getting following error.

The test run cannot continue due to an unrecoverable error.

General run error.
Line (9): "objLinks(cint(i)).Click". The test run cannot continue due to an unrecoverable error.
Reply


Messages In This Thread
RE: How to click all the links on page and verify respective contents - by sudhirzpatil - 11-23-2010, 10:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 23,716 04-29-2017, 04:53 PM
Last Post: kowshik
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,791 10-25-2016, 06:57 PM
Last Post: robertosalemi
Question Webtable contains cell contains two links, how to click on link srinivassure 9 52,747 07-30-2016, 03:41 PM
Last Post: Akshay
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,726 05-04-2016, 11:28 PM
Last Post: supputuri
  verify that parent properties match object currently displayed in your application. sona 0 2,958 02-21-2016, 12:00 PM
Last Post: sona

Forum Jump:


Users browsing this thread: 1 Guest(s)