Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP DP to click no. of pages
#1
Solved: 10 Years, 10 Months, 1 Week ago
hi,
I have click on the page nos displayed in my search screen and for that i have written the below code but the problem is it clicks only on 2nd page and then qtp throws an "General Run error" when for loop gets executed for 2nd time.

Please let me know how to resolve the issue

Code:
Dim NumberOfLinks
Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set LinkCnt = Browser("Bro").Page("page").Webelement("elm_PageNos").ChildObjects(oDesc)
NumberOfLinks = LinkCnt.Count
For i = 0 To NumberOfLinks
     LinkCnt(i).highlight 1
    LinkCnt(i).Click
Next
Reply


Messages In This Thread
QTP DP to click no. of pages - by rashmi2309 - 09-03-2009, 03:16 PM
RE: QTP DP to click no. of pages - by manabh - 09-03-2009, 03:27 PM
RE: QTP DP to click no. of pages - by rashmi2309 - 09-03-2009, 03:35 PM
RE: QTP DP to click no. of pages - by basanth27 - 09-03-2009, 04:01 PM
RE: QTP DP to click no. of pages - by rashmi2309 - 09-03-2009, 04:15 PM
RE: QTP DP to click no. of pages - by satan - 09-03-2009, 04:29 PM
RE: QTP DP to click no. of pages - by manabh - 09-03-2009, 04:28 PM
RE: QTP DP to click no. of pages - by rashmi2309 - 09-03-2009, 06:08 PM
RE: QTP DP to click no. of pages - by Saket - 09-03-2009, 04:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I can't displaying all the pages name in the .txt file njnirmal 9 4,764 08-17-2009, 05:56 PM
Last Post: manabh
  calling single script to identify web pages dynamically Anj 2 3,334 01-22-2008, 03:35 PM
Last Post: Anj

Forum Jump:


Users browsing this thread: 1 Guest(s)