0

How do deal with below error?

selenium.common.exceptions.WebDriverException: Message: "Can't load the profile.

enter image description here

I've tried add my host file like it in python selenium webdriver issue ( selenium.common.exceptions.WebDriverException: Message: "Can't load the profile. Profile Dir: )

But it not works, any other ways to solve the problem?

127.0.0.1 localhost

127.0.0.1 local.development.com
Community
  • 1
  • 1
Stella
  • 1,504
  • 2
  • 16
  • 25

2 Answers2

2

I've update selenium site package to the latest one.

by the cmd:

pip install -U selenium

enter image description here

Stella
  • 1,504
  • 2
  • 16
  • 25
2

pip install -U selenium

I had this same issue with Firefox 34.0.5 (Dec 1, 2014) and upgrading Selenium from 2.42.1 to 2.44.0 resolved my issue.

However, I've have since seen this issue again, I think with 2.44.0, and another upgrade fixed it. So I'm wondering if it might be fixed by simply uninstalling and then re-installing. If so, I'm not sure what that would indicate the underlying problem is.

Rob Bednark
  • 25,981
  • 23
  • 80
  • 125