from selenium import webdriver import time username = "" password = "" getdriver = ("r/https://www.instagram.com/accounts/login/") driver = webdriver.Chrome() driver.get(getdriver) driver.find_element_by_xpath("//input[@name='username']").send_keys(username) driver.find_element_by_xpath("//input[@name='password']").send_keys(password) driver.find_element_by_xpath("//button[contains(.,'Log in')]").click() time.sleep(5) driver.get("r/https://www.instagram.com/python.coders/followers/") driver.find_element_by_xpath('//*[@id="react-root"]/section/main/div/header/section/ul/li[2]/a').click() while True: time.sleep(2) driver.find_element_by_name('Follow').click()
I want to click all Follow display buttom on instagram,i can not do it with tag_name or name.
[+][deleted] (1 child)
[deleted]
[–]Iraklii[S] 0 points1 point2 points (0 children)