Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP DP to click no. of pages
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
You can try this out. This will go on till it finds the page count links.

Code:
Dim blnProceed, oLink, objTmp, LinkColl
blnProceed = True
i = 0
Do
        Set objTmp = Description.Create()
        objTmp("micclass").Value = "Link"
        objTmp("text").Value = Cstr(i + 2)
        Set LinkColl = Browser("Br").Page("Pg").ChildObjects(objTmp)
        If LinkColl.Count > 0 Then
            Set oLink = LinkColl(0)
            oLink.HighLight
            oLink.Click
            i = i + 1
        Else
            blnProceed = False
        End If
Loop While blnProceed
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 5,020 08-17-2009, 05:56 PM
Last Post: manabh
  calling single script to identify web pages dynamically Anj 2 3,491 01-22-2008, 03:35 PM
Last Post: Anj

Forum Jump:


Users browsing this thread: 5 Guest(s)