From: Alain B. <alb...@gm...> - 2014-05-03 10:47:06
|
I don't have too much experience with it But I will try something like that: WebClient webClient = new WebClient(BrowserVersion.FIREFOX_24); HtmlPage page = webClient.getPage("http://yourpage.com"); HtmlDivision div = page.getHtmlElementById("introductionDate"); String content = div.getTextContent(); Regards Alain 2014-05-03 1:59 GMT+02:00 Rich Goldman <ri...@um...>: > Hi. I'm new to HtmlUnit and am hoping this is an easy newbie question. > > I'm trying to parse out information about legislation from the DC City > Council website. They recently changed their system from a basic HTML page > of data to a dynamically loaded page. > > An example bill page is: > http://lims.dccouncil.us/Legislation/PR20-0624 > > When I retrieve the Page, I get the html, but without the fields > populated. > > I've tried without success to identify a javascript function to call via > HtmlUnit that would populate the html. > > What might I be missing in order to get a Page object that has the html > with populated fields? > > For example, in the provided link, the html has the string/row header > "Introduction Date" hard-coded, but I need to get the populated value > of Jan 22, 2014. > > Any advise, code, or reading material would be greatly appreciated. > > Thank you. > -Rich > > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available. > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |