title: How to click on a same button multiple times using Selenium WebDriver with Java
body: <p>I tried searching for this but had 0 luck with this.
  Here's my problem, on my webpage I have a button that at every click generates some data. I'm trying to automate this so Selenium could keep clicking on it for, say 50 times, after every 2 seconds and I can verify that the data is being generated correctly. How do I formulate my for loop to achieve this. Help is greatly appreciated.</p>