title: Perform click on Web page element before parsing in Java
body: <p>I'm trying to parse HTML page with DOM parser and <a href="https://jsoup.org/" rel="nofollow noreferrer">jsoup</a> library.
  The problem that I'm facing is this:</p>
  <p>On Web site there are two buttons which show two different tables.
  I need to parse the table which is shown when the second button is clicked.
  There are different attribute values set after clicking the second button.</p>
  <p>When I do <code>Jsoup.connect(&quot;example.com&quot;)</code></p>
  <p>I get response like first button is selected and I don't need that data.</p>
  <p>Is there a way to perform click on second button, and then start parsing and retrieving data from Web site?</p>