I want to write a program that can use a particular website. I want it to be able to recognize fairly trivial things (text), click links, and submit forms.
I want the server logs to look no different than an actual user's activity, so I don't want to operate outside of a browser, as I normally would. I want things like javascript to be able to run as expected on the page, so I don't want to just fake the user-agent being sent.
What should I be looking at, to accomplish this? It would run in Windows. If I had to pick a single browser, it would be Chrome, with Firefox as my second choice. If it wasn't that much more complicated, I'd love to be able to have it work with Chrome, Firefox, IE, and Edge, but just picking 1 is also OK.
I'm very familiar with C++, and would prefer to use that for this project. (Yes, I know other languages might be quicker development for someone familiar with them, but it's what I want to stick with.)
I need it to be able to also interact outside of the browser, with a database. I'm fine either having a browser add-on that is capable of interprocess communication to handle this, or having a fully external program that's able to effectively scrape the browser and create user-looking input.