java – Are there any tool/library etc. to go a website and then click a button to create dynamic html before parsing?

Sorry if the header seems a bit confusing.

Simply, I am parsing HTML of a website by using JSoup library of Java. The thing is, the HTML is dynamically created in that website. My code should first click “Load More” button in the website and then parse the HTML. I couldn’t figure out how to do this.

I found out that HTML Unit or Selenium is related with this problem but I want to indicate a difference. I don’t want my browser to be opened and then a buttun clicked and I guess this is what these tools do.