Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
want to change index dynamically of WebTable object
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Atanu,

Try using descriptive programming to find all of the web tables with name "Security". This code searches frame "main_frame" for all web tables with the name "Security". "children.count", in the code below, is the number of such tables found. Then you can loop through the tables found, one by one, and do whatever you want. Maybe this will do what you want or give you some more ideas on how to solve your problem.

Tim

Code:
oDesc=Description.Create
oDesc("micclass").Value="WebTable"
oDesc("Name").Value="Security"
set children=Browser("Application").Page("Application").Frame("main_Frame").ChildObjects(oDesc)
for i = 0 to children.count - 1
    'here you can use children(i) to get properties, etc. e.g., children(i).GetROProperty("abs_x")
    'or children(i).click, etc. whatever you want to do with the web table found
next i
Reply


Messages In This Thread
RE: want to change index dynamically of WebTable object - by tdevick - 05-04-2011, 09:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do you Change Run mode mid script? Caleytown 6 7,234 03-25-2021, 08:27 AM
Last Post: RB26578
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,364 03-02-2020, 09:33 PM
Last Post: Swishy70
  Unable to capture value of Webelement which is changing dynamically sheetal 9 16,241 02-16-2018, 11:01 AM
Last Post: janki_kakadia
  Unable to click on dynamically changing webelement preeti 0 1,817 04-29-2017, 08:50 PM
Last Post: preeti
  click each web link in a page using Index or other method in QTP smeijer 13 24,728 04-29-2017, 04:53 PM
Last Post: kowshik

Forum Jump:


Users browsing this thread: 1 Guest(s)