I have a problem with a code.
I need to wait for 3 seconds and then click the Follow button.
This code click the Follow button immediately when the website loads.
for follow in accounts_scrapped:
driver.get(follow)
try:
follow_button = driver.find_element_by_xpath("//span[text() = 'Follow']").click()
print("found follow button")
follow_button.click()
print("followed")
except:
print("already followed this account. Going to next one")
continue
time.sleep(3)?follow_button = driver.find_element_by_xpath("//span[text() = 'Follow']").click()has .click() at the endfollow_button.click()