From: Brad C. <yo...@br...> - 2005-03-21 22:49:00
|
I don't think there's anything for doing data lookups in tables but I'm sure a creative xpath statement could get that for you. I'd say a function to read the table rows would make a lot more sense to someone else months from now but as I look back as what I did months ago I can only say I'm glad I unit tested the crap out of it :) Brad C --- Sridhar Ranganathan <Sri...@Su...> wrote: > 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 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |