Hi Judy...following script may help you in this regard...
Description:Program to count total number of tables on the page and total
columns and rows on the first table..
--------------------------------------------------------------------------------------------
Set oDesc = Description.Create()
oDesc("html tag").Value = "TABLE"
Set oChild =
Browser("micclass:=Browser").Page("micclass:=Page").ChildObjects(oDesc)
'Counting number of tables on the page
MyTableCount = oChild.Count
Msgbox "We have " & MyTableCount &" tables"
'Counting number of rows on the First table
Total_rows=oChild(0).RowCount
Msgbox "Table has" &Total_rows &"Rows"
'Counting number of column on the First Row of First Table
Total_cols=oChild(0).ColumnCount(1)
Msgbox "This Row has" &Total_cols &"Columns"
--------------------------------------------------------------------------------------------
On Fri, Oct 23, 2009 at 5:20 AM, Judy <[email protected]> wrote:
>
> Hi,
>
> How can i automate web application which has web table contents from
> database.
>
> Thank you
>
> >
>
--
Regards,
Bibek Khatiwara
Hey! Catch me on:
http://khateee.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---