for el in elem:
div = driver.find_element_by_class_name('arrow_an')
div.click()
from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy, ProxyType
with open('qwerty.txt','rb') as f:
a = str(f.read()).replace("b'",'').replace("'",'')
c = a.replace(a[0],'')
b = a.split(r'\r\n')
for i in b:
print(i)
prox = Proxy()
prox.proxy_type = ProxyType.MANUAL
prox.http_proxy = i
prox.socks_proxy = i
prox.ssl_proxy = i
capabilities = webdriver.DesiredCapabilities.OPERA
prox.add_to_capabilities(capabilities)
driver = webdriver.Chrome(desired_capabilities=capabilities)
driver.get('https://2ip.ru')
inn = driver.find_element_by_xpath('//*[@id="d_clip_button"]')
print(inn.text)
driver.quit()