Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Index number of tables
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Lorena,

Maybe you could try using the mathematical formula to get any odd number:

Odd Number = n*2+1

You just have to start your sequence with n=2 (2*2+1 = 5). Then just increase your n until you reach the last link (if you have 13 links then the last n will be 15, 15*2+1 = 31)

You could assign the index you want to your object using

Code:
Browser("Wisdom").Page("WisdomLogin").Frame("parent").WebTable("Document Type").SetTOProperty "index", n*2+1

This way you could go increasing you index two by two, by increasing n one by one.

I hope this could help you.
Luth.
Reply


Messages In This Thread
Changing Index number of tables - by mv8167 - 08-12-2011, 07:27 PM
RE: Changing Index number of tables - by luth - 08-17-2011, 04:57 PM
RE: Changing Index number of tables - by mv8167 - 08-17-2011, 07:12 PM
RE: Changing Index number of tables - by mv8167 - 08-24-2011, 02:01 AM
RE: Changing Index number of tables - by luth - 08-25-2011, 08:36 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 24,688 04-29-2017, 04:53 PM
Last Post: kowshik
  Page element keep changing chong67 4 4,620 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  Upgraded QTP 11.0 to UFT 11.53, Object Index Properties are varying Raghava M 0 2,180 01-28-2015, 06:02 PM
Last Post: Raghava M
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 5,062 12-20-2013, 01:44 PM
Last Post: sshukla12
  Unable to select a combo item by value or index martinshort 2 3,567 08-26-2013, 07:55 PM
Last Post: sudhirzpatil

Forum Jump:


Users browsing this thread: 2 Guest(s)