Jsoup Java HTML parser : Executing Javascript events

user517491 picture user517491 · Sep 8, 2011 · Viewed 25.6k times · Source

Can I fill out forms, execute events and Javascript functions in Jsoup? If yes how can I? Or should I go for another parser.

Answer

dm3 picture dm3 · Sep 8, 2011

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.