Either should work:
Browser("").WebTable("xpath:=//div[@id='jobstatusdiv']//table")
Browser("").WebElement("html id:=jobstatusdiv").WebTable("index:=0")
On Tuesday, April 16, 2013 5:22:13 AM UTC-4, sandeep chaugule wrote:
>
> Hello,
>
> Can you please let me know how to specify xpath for a webtable and get
> the row count
>
> this is what i 've done
>
> browser().WebTable("xpath:=//div[@class='list']/
> table[@class='default']/thead/tr").RowCount
>
> below is the structure
>
> div id="jobstatusdiv"><div class="list"><table class="default"
> width="100%"><thead><tr><th style="width:50px;">
> Id
> </th><th style="width:50px;">
> Job Id
> </th><th style="width:150px;">
> Job Date
> </th><th style-"width:105px;"="">
> Database Name
> </th><th style="width:180px;">
> Procedure Name
> </th><th style="width:50px;"></th><th style="width:200px;"></
> th><th style="width:80px;"></th><th style="width:150px;"></th><th
> style="width:150px;"></th><th style="width:80px;"></th></tr></thead>
>
--
--
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
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.