Now I have to repeat this set of steps for more than 1000 different IDs. Therefore, I am seeking for help. Is there any way that I can automate the whole process ?
I use Selenium to control the Chrome browser. You can programmatically control the browser in exactly the same way as if you were using a mouse. You identify the element you need using XPath, which you get from Chrome Developer Tools - Inspect Element.
You would read your IDs from a text file or database, loop through them all and click the buttons.
You can watch Selenium interact with the browser and can also easily troubleshoot with Developer Tools if there is an uncaught error.
I use Python to do this. Selenium supports other languages.