Hi ,
I am having a little trouble in getting information from the Html Page.
I have a table and in that, there are multiple rows. The following is
the example of one such row :
====================
<table border="0" cellpadding="0" cellspacing="0" title="">
<tr>
<td><div class="ConTblCl1Div"><span
class="LblLev2Txt"> </span></div></td>
<td valign="top"><div class="ConTblCl2Div"><table>
<tr>
<td>
<table>
<tr>
<td>
<span class="LblLev2Txt">No.of Hours</span></td>
<td>
<img src="/com_sun_web_ui/images/other/dot.gif" alt="" border="0"
height="1" width="15" /></td>
<td>
14 Hrs</td>
</tr>
====================
I have many rows with the same class but with different content.
What I want to do is to pass the parameter "No.of Hours" and retrieve
"14 Hrs".
One way is to retrieve it as a table row and parse it. But I think that
is kind of tedious. Is there any method in HtmlUnit to retrieve the
information ?
Thanks in advance.
--
Sridhar R
|