Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebTable..Row and Column Count
#10
Solved: 11 Years, 4 Months, 3 Weeks ago
Thanks for the help, the code you provided is giving me the same results.

Code:
Dim Tcount
Set Tcount = Browser("").Page("").WebTable("Global Six Aprs Testsix")

a = Tcount.GetROProperty("rows")
b = Tcount.GetROProperty("cols")
For i = 1 to a
    For j = 1 to b
c = Tcount.GetCellData(i,j)
msgbox i
msgbox j
msgbox c 'here you should be able to see what each cell has data in that table.
Next ' j
Next ' i

The code returns the value of 1 row and 1 column.

And the CellData that is returned is for the WebTable "Requests Pending
For Approval" which if you look at the attached screen shots is the WebTable that the "Global Six Aprs Testsix" WebTable is part of.

The Run-Time Object Properties of the Web Table "Global Six Aprs Testsix" innertext value is <multi-line value>.

For some reason it seems that there is only 1 row and 1 column in both web tables.

I hope I did not confuse you even more, but I need to be able to locate specific data in the webtable and then click on the object.

I did accomplish this process with other web tables where I can get the row/column count but for some reason I can not get the row/column of either web tables.

Any other suggestions would be greatly appreciated!

Brian
Reply


Messages In This Thread
WebTable..Row and Column Count - by Brian T. - 07-20-2010, 03:42 AM
RE: WebTable..Row and Column Count - by Saket - 07-20-2010, 02:15 PM
RE: WebTable..Row and Column Count - by basanth27 - 07-20-2010, 03:02 PM
RE: WebTable..Row and Column Count - by basanth27 - 07-22-2010, 08:19 AM
RE: WebTable..Row and Column Count - by Brian T. - 07-22-2010, 07:31 PM
RE: WebTable..Row and Column Count - by Teju - 03-16-2012, 04:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DataGrid: double click on selected row robertosalemi 0 4,464 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Row count is always shown as 1 Harry1999 0 2,133 04-14-2016, 11:11 PM
Last Post: Harry1999
  [UFT] Get column name from SfwObject felino 0 3,055 12-02-2015, 04:07 PM
Last Post: felino
  Keep row number imbizile 0 2,773 09-18-2014, 03:31 AM
Last Post: imbizile
  Retrieve row number based on value in DataTable marfa 6 30,918 07-31-2014, 08:36 PM
Last Post: dharshinishankari@gmail.com

Forum Jump:


Users browsing this thread: 4 Guest(s)