How to check how many web tables are there in a webpage?

Questions by John Vinay

Showing Answers 1 - 6 of 6 Answers

akothuru

  • Sep 5th, 2008
 

Set oDesc = Description.Create()
oDesc("html tag").Value = "TABLE"

' Get a collection of webtable
Set oCollection = Browser(“name:=test”).Page(“title:=test”).ChildObjects(oDesc)
webTableCnt = oCollection.Count-1


  Was this answer useful?  Yes

akothuru

  • Sep 5th, 2008
 

use the following code to count no . of web tables in the web page

Set oDesc = Description.Create()
oDesc("html tag").Value = "TABLE"

' Get a collection of webtable
Set oCollection = Browser(“name:=test”).Page(“title:=test”).ChildObjects(oDesc)
webTableCnt = oCollection.Count-1


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions