KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This question was asked once already , but the API changed I guess and the answers are no valid anymore. URL url = new URL("http://www.example.com"); StringWebResponse response = new StringWebResponse("<html><head><title>Test</title></head><body></body></html>", url); HtmlPage page = HTMLParser.parseHtml(response, new TopLevelWindow("top", new WebClient())); System.out.println(page.getTitleText()); Can't be done because TopLevelWindow is protected and stuff like extending/implementing the window because of that is ridiculous :) Anybody has an idea how to do that ? It seems to me weird that it can't be done easily.
Tags (comma-separated)
Save Edits
Cancel