From: Christian S. <chr...@ne...> - 2003-03-24 13:18:22
|
this raises a question I have had on my mind for a while: what about specifying elements via XPath? There are XPath implementations around that can operate on a standard DOM, so if that was accessible (I didnt find it in Htmlunit, but must be around somewhere), one could point to any elements via XPath. There are even free graphical tools available to create XPath expressions from a web page. - Christian Mike Bowler wrote: > Teo Kian Lee wrote: > >> Is there a way to get htmltable (from htmlpage) without any table id >> assigned? > > > Nothing really simple. On the page, you could call > getHtmlElementsByTagName() to retrieve all the tables or you could call > getHtmlElementsByAttribute() if you know one specific attribute that has > been set on the table. Both of these methods are defined in HtmlElement. > |