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

Source: Internet
Author: User

Error description: Selenium in Python code to initialize a Firefox browser failed, see the next selenium version is 2.35, and then use Firefox-- Version looked at the next is 28.0,firefox as if not obedient automatic upgrade led to the older version of selenium not supported.

Traceback (most recent):
File "C:\Python27\erSiteCompare.py", line 528, in
Sys.exit (Main ())
File "C:\Python27\erSiteCompare.py", line 525, in main
Sites.run ()
File "C:\Python27\erSiteCompare.py", line 462, in run
Self.capture ()
File "C:\Python27\erSiteCompare.py", line 353, in capture
Self.startsite1 ()
File "C:\Python27\erSiteCompare.py", line 233, in StartSite1
Raise E
Selenium.common.exceptions.WebDriverException:Message: "Can ' t load the profile.
Profile Dir:c:\\users\\rachelc\\appdata\\local\\temp\\tmp7pjtay Firefox Output
:
LOG addons.xpi:startup\r\n
LOG addons.xpi:Skipping Unavailable Install location app-system-local\r\n
LOG addons.xpi:Skipping Unavailable Install location app-system-share\r\n
LOG addons.xpi:checkforchanges\r\n "


Workaround:

Enter sudo pip install-u selenium to upgrade the current selenium version, it automatically connect me to the pypi.python.com and get a 2.42 version of the package, after the update can be used normally.

If the sudo pip hint is not found, you can which Pip first, and then sudo the PIP in the directory, perhaps the bin path is not included in the BASHRC.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.