Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP DP to click no. of pages
#7
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi rashmi...

call the below line again to reload the object list again after clicking for the link for page number.

Code:
Set LinkCnt = Browser("Bro").Page("page").Webelement("elm_PageNos").ChildObjects(oDesc)


reason: qtp must identify objects again after page loading.previous page objects will be different from current one so u need to reload them again.
the solution manab provided will work .. since he is reloading the object list of links in a do while loop.
but it will start giving u prob if there are more page num links.

u can remove the object creation part from the loop.
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: 7 Guest(s)