Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DIV and span tags
#1
Not Solved
Hi,

Good morning.
I am new to QTP. I got the following html code snippet. How can i extract the span tag values under div and ul tags in the following formats.



HTML code:
Code:
<div id=firstheader> HEADER1value </div>
<div id = "firstheadervalues">
<ul>
<li><span class="percentage"> 7% </span> <span class="listval">column1</span></li>
<li><span class="percentage"> 8% </span> <span class="listval">column2</span></li>
<li><span class="percentage"> 9% </span> <span class="listval">column3</span></li>
<li><span class="percentage"> 10% </span> <span class="listval">column3</span></li>
</ul>
</div>


<div id=secondheader> HEADERSECOND </div>
<div id = "secondheadervalues">
<ul>
<li><span class="numval"> 123 </span> <span class="secondval">value123</span></li>
<li><span class="numval"> 124 </span> <span class="secondval">value124</span></li>
<li><span class="numval"> 125 </span> <span class="secondval">value125</span></li>
<li><span class="numval"> 126 </span> <span class="secondval">value126</span></li>
</ul>
</div>

How can i print the values in the following format????

HEADER1Value
column1 --- 7
column2 --- 8
column3 --- 9
column4 --- 10


HEADERSECOND

value123 -- 123
value124 -- 124
value125 -- 125
value126 -- 126

its urgent.Your help will be greatly appreciated.

Thanks you .
vas.
Reply


Messages In This Thread
DIV and span tags - by techvas - 06-11-2013, 08:11 PM
RE: DIV and span tags - by techvas - 06-11-2013, 10:52 PM
RE: DIV and span tags - by Ankur - 06-12-2013, 02:06 AM
RE: DIV and span tags - by techvas - 06-12-2013, 02:21 AM
RE: DIV and span tags - by Ankur - 06-21-2013, 02:27 PM
RE: DIV and span tags - by benjwal - 06-20-2015, 04:51 PM
RE: DIV and span tags - by supputuri - 06-24-2015, 12:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Identifying a WebGrid using Div Tag - Solved EnthusiasticLearner 2 3,499 01-06-2014, 09:27 PM
Last Post: EnthusiasticLearner
  How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? bell.ramesh 1 4,274 08-20-2012, 11:07 AM
Last Post: Victor~

Forum Jump:


Users browsing this thread: 1 Guest(s)