开发者

Jsoup Java HTML parser : Executing Javascript events

Can I fill out forms, execute events and Javascript functi开发者_StackOverflow社区ons in Jsoup? If yes how can I? Or should I go for another parser.


JSoup is just an HTML parser/"tidyfier" - not a browser emulator. To interact with HTML pages (execute javascript, fill out forms, etc.) you should use a tool like HtmlUnit or Selenium.


Use Selenium - if you use Selenium 2 WebDriver API, the main classes there are WebDriver, FirefoxDriver, and JavascriptExecutor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜