seleinum 测试,出现 Message: Reached error page: about:neterror?


#1

======================================================================
ERROR: test_login (tests.test_ui.UserInterfaceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\张启宏\todoism\tests\test_ui.py", line 52, in test_login
    self.login()
  File "C:\Users\张启宏\todoism\tests\test_ui.py", line 36, in login
    self.client.get('http://localhost:5000')
  File "C:\Users\张启宏\.virtualenvs\todoism-y4ZhU9-2\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 332, in get
    self.execute(Command.GET, {'url': url})
  File "C:\Users\张启宏\.virtualenvs\todoism-y4ZhU9-2\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 320, in execute
    self.error_handler.check_response(response)
  File "C:\Users\张启宏\.virtualenvs\todoism-y4ZhU9-2\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=connectionFailure&u=http%3A//localhost%3A5000/&c=UTF-8&f=regular&d=Firefox%20%E6%97%A0%E6%B3%95%E5%BB%BA%E7%AB%8B%E5%88%B0%20localhost%3A5000%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E8%BF%9E%E6%8E%A5%E3%80%82

这是什么原因?该如何解决??