Selenium Webdriver vs Jsoup - When to use [closed] Selenium Webdriver vs Jsoup - When to use [closed] selenium selenium

Selenium Webdriver vs Jsoup - When to use [closed]


Selenium has the advantage that it runs an actual browser, it will therefore execute all the JS and so forth in a way that's very, very close to an actual user of the site. The API further allows you to write your tests in a language that's close to the actual interactions (e.g. click to click on a link).

So if you do have tests that have some form of interactions (forms, links, etc.) The overhead of Selenium is worth it. If you simply want to open an URL and check for the existence of some content Jsoup will do.