开发者

Jsoup Java HTML parser : Executing Javascript events

开发者 https://www.devze.com 2023-04-03 05:39 出处:网络
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 br

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

精彩评论

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