I'm fairly new to Python and Selenium, but starting to pick it up. I've been googling how to solve this coding issue, but can't find the exact solution.
What I'm trying to accomplish is click all of the username links on a page, click the follow button on the page that I'm taken to, then return to the original page and do the same for rest of the username links.
Basically, I want to create a loop that does this:
click on the first username
click on the follow button
go back to the previous page
click on the second username
click on the follow button
go back to the previous page
ETC..... through each link
Here is my current code and what I've tried so far:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
browser = webdriver.Firefox()</