Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identifying a WebGrid using Div Tag - Solved
#1
Solved: 10 Years, 4 Months ago
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.

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()
Reply


Messages In This Thread
Identifying a WebGrid using Div Tag - Solved - by EnthusiasticLearner - 01-06-2014, 12:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DIV and span tags techvas 6 10,167 06-24-2015, 12:59 AM
Last Post: supputuri
  QTP Unable to differentiate WebTable in Application - Solved EnthusiasticLearner 3 6,026 12-27-2013, 12:26 PM
Last Post: EnthusiasticLearner
  How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? bell.ramesh 1 4,011 08-20-2012, 11:07 AM
Last Post: Victor~
  QTP Webelement with Html tag as OPTION pjr 0 6,855 01-30-2011, 05:33 AM
Last Post: pjr
  Need URGENT help how to read xml string / xml tag value in web page using QTP VQTP 2 5,723 04-16-2009, 02:27 AM
Last Post: VQTP

Forum Jump:


Users browsing this thread: 1 Guest(s)