01-06-2014, 12:20 PM
(This post was last modified: 01-06-2014, 10:03 PM by EnthusiasticLearner.)
I have the following html tag for a Web Grid. How do I use it to identify this Webgrid using the unique Div ID in QTP. I need to use this div id as it's the only unique identifier.
Let me know if you need more details. I did search the forum and the internet but with no help so created a thread to serve the purpose. Any help is highly appreciated
Solution
Code:
<div id="UniqueID"class="rowdetail" width="100%">
<table class="datagrid" width="100%">
<tr><th colspan="2" style="text-align: center">TableName</th></tr>
<tr><td width="25%"> ....</td></tr>
</table></div>
Let me know if you need more details. I did search the forum and the internet but with no help so created a thread to serve the purpose. Any help is highly appreciated
Solution
Code:
Browser("B").Page("P").WebElement("html id:=UniqueID").WebTable("html tag:=TABLE").RowCount()