I am wondering how to log into a website using Selenium. I had to scrap my BeautifulSoup code because the website started using JavaScript and it was unable to return anything. The code I would use to log in was simple and used cookies from the website by taking the cURL and inputting it into curlconverter.com. From there I would use this code to log me into the website (msg is a specific link from within the website a user from discord sends). My main question is if there's a simple way of logging into a website using Selenium that's equivalent to this code
response = requests.get(msg, cookies=cookies, headers=headers)
soup = BeautifulSoup(response.content,'html.parser')