File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes HtmlUnit and getAnchors() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "HtmlUnit and getAnchors()" Watch "HtmlUnit and getAnchors()" New topic

HtmlUnit and getAnchors()

Al Finlay
Ranch Hand

Joined: Oct 26, 2012
Posts: 34
Hi. I'm stumped on something and I'm sure it must be something simple that I'm just not seeing.

This works and outputs ..
290 logout/?_xfToken=13475%2C1352579233%2Cd210ac1778c4202f630d901a885422022323232f

But this does not work ..

It reports ..
ElementNotFoundException: elementName=[a] attributeName=[href] attributeValue=[logout/?_xfToken=13475%2C1352579233%2Cd210ac1778c4202f630d901a885422022323232f]

It's driving me nuts. I've looked at it again and again and it looks like the same thing to me. What am I missing? Do I have to escape something in the string or something? I tried // no luck
Thanks in advance.
I agree. Here's the link:
subject: HtmlUnit and getAnchors()
It's not a secret anymore!