Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding WebElements
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hello Lorena,

Just did some little changes in your script. When you know that you want the data of 5th column then no need to put an extra for loop for column

Code:
Set TableObj = Browser("Wisdom").Page("Wisdom IA_2").Frame("parent").WebTable("Select All")

RowCount= TableObj.RowCount

rNumber = 1

For r = 1 to RowCount
    If r <> 2 Then
        ChildCountPage=TableObj.ChildItemCount(r, 5, "WebElement")
        If ChildCountPage > 0 Then
                For k = 0 to ChildCountPage - 1 ' no need to run the index loop also as you can debug on which index number the pages are coming and provide that index no in childitem method
                    rNumber = rNumber +1
                    NumPages = TableObj.ChildItem(r,5, "WebElement", k).GetROProperty("innertext")
                     If NumPages<>"" Then
                        objExcel.Cells(rNumber, 6).Value = NumPages
                        Exit For
                     End If
                Next
        End If
      End If
Next

Regards,
Parminder
Reply


Messages In This Thread
Finding WebElements - by mv8167 - 06-29-2011, 12:36 AM
RE: Finding WebElements - by parminderdhiman84 - 06-29-2011, 03:22 PM
RE: Finding WebElements - by mv8167 - 06-29-2011, 06:48 PM
RE: Finding WebElements - by parminderdhiman84 - 06-29-2011, 09:16 PM
RE: Finding WebElements - by mv8167 - 06-29-2011, 10:43 PM
RE: Finding WebElements - by parminderdhiman84 - 06-30-2011, 09:28 AM
RE: Finding WebElements - by mv8167 - 06-30-2011, 10:21 PM
RE: Finding WebElements - by parminderdhiman84 - 06-30-2011, 11:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get numbers inside all webelements in webtable and sort them pradeep537 1 2,850 08-04-2016, 01:24 AM
Last Post: Ankur
  Comparing webtable data with weblist and webelements in other webpage arnav 1 5,865 04-18-2014, 10:01 PM
Last Post: Parke
Exclamation UFT is not finding object in runtime but able to locate the object from repository amar.vallapreddy 1 2,748 02-25-2014, 02:22 PM
Last Post: guin.anirban
  WebElements shayk1985 4 3,466 03-04-2013, 04:19 AM
Last Post: shayk1985
  How to remove space between webelements silpavinod 2 3,330 10-11-2012, 02:53 PM
Last Post: silpavinod

Forum Jump:


Users browsing this thread: 3 Guest(s)