I’ve only used Selenium for web scraping. Chapter 11 of Automate the Boring Stuff with Python has a good intro to Selenium using Python.
https://automatetheboringstuff.com/chapter11/
There’s also watir which uses Ruby:
I’m not very familiar with AWS or Jenkins.