AttributeError:“模块”对象没有属性“ PoolManager”

时间:2018-10-01 06:58:41

标签: python selenium selenium-webdriver

代码

from selenium import webdriver

driver = webdriver.Firefox()
driver.get("http://www.google.com")

print drive.title

我曾尝试使用Firefox和Chrome网络驱动程序,但是对于这两者,我都遇到了以下相同的错误。

AttributeError:“模块”对象没有属性“ PoolManager”

    self.driver = webdriver.Firefox()
  File "C:\Python27\lib\site-packages\selenium-3.14.1-py2.7.egg\selenium\webdriver\firefox\webdriver.py", line 169, in __init__
    remote_server_addr=self.service.service_url)
  File "C:\Python27\lib\site-packages\selenium-3.14.1-py2.7.egg\selenium\webdriver\firefox\remote_connection.py", line 23, in __init__
    RemoteConnection.__init__(self, remote_server_addr, keep_alive)
  File "C:\Python27\lib\site-packages\selenium-3.14.1-py2.7.egg\selenium\webdriver\remote\remote_connection.py", line 140, in __init__
    self._conn = urllib3.PoolManager(timeout=self._timeout)
AttributeError: 'module' object has no attribute 'PoolManager'

任何帮助将不胜感激

TIA

0 个答案:

没有答案