From: Brad C. <yo...@br...> - 2005-03-05 22:48:46
|
We use divs all over the place so it should work just fine. Try HtmlPage.asXml() and make sure it's the page you think it is. --- Vinay Murthy <vin...@gm...> wrote: > Hi, > > Does HtmlUnit have support for the <div> tag ? The reason why I ask > this is that, I have a page that lists a bunch of anchors within a > <div> tag. Unfortunately I am not able to fetch a handle to any of the > anchors using the getAnchorByHref( String href ) method the page in > question. > > Whenever I try to fetch a handle, I get an ElementNotFoundException. I > tried rendering the same html code in a browser(IE) and I could > actually see the links there. Also, something that surprised me was, > when I tried dumping the page using HtmlPage's asText(), nothing got > dumped. I presume asText() returns the page as seen in a browser. > > Appreciate your help, > > Best Regards > Vinay > > > ------------------------------------------------------- > 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 > |