splinter icon indicating copy to clipboard operation
splinter copied to clipboard

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

Open LeandroPessoa opened this issue 10 years ago • 9 comments

The issue #155 has come back. I'm getting the same error with the latest version of dependencies.

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

LeandroPessoa avatar Sep 28 '16 23:09 LeandroPessoa

thanks for report. what splinter and driver version are you using?

andrewsmedina avatar Sep 29 '16 00:09 andrewsmedina

selenium==2.53.6 splinter==0.7.4

I don't know which version of the driver, but the version of Firefox is 49.

LeandroPessoa avatar Sep 29 '16 12:09 LeandroPessoa

My guess is that you are running into this: https://github.com/SeleniumHQ/selenium/issues/2739 In particular you might want to follow the instructions on installing geckodriver and the beta version of selenium: https://github.com/SeleniumHQ/selenium/issues/2739#issuecomment-250112599

martinpelikan avatar Sep 30 '16 21:09 martinpelikan

I try the solution proposed : capabilities={"marionette":True} If i put capabilities={"marionette":False} is getting the same error. Now the browser window is stucked on nothing. Only a white page. Looking in a geckodriver.log nothing conclusive, but it appears that geckodriver is working properly. http://pastebin.com/DcGLkiTg

LeandroPessoa avatar Oct 03 '16 12:10 LeandroPessoa

@LeandroPessoa can you confirm that you are running version 3.0.0b3 of Selenium? The Splinter package will not automatically install that for you. You shouldn't have to change the capabilities unless you want to work with an older version of Firefox.

martinpelikan avatar Oct 03 '16 17:10 martinpelikan

@martinpelikan i forced the installation of this version in a hope to things get work again, but in a latest version and this beta version the error is the same . Still not working if i don't change the capabilities. Looking in latest updates on issues of selenium, there's more people talking about this problem in the last days. I'm trying the possible solutions, but so far no one solution works.

LeandroPessoa avatar Oct 03 '16 18:10 LeandroPessoa

Any update on this ?? im seeing the same error with even without the marionette cap, so im not sure what is happening, using selenium-3.0.0b3 and firefox 49 in Captain.

jahlopez1988 avatar Oct 03 '16 22:10 jahlopez1988

Unfortunately I'm out of ideas if you followed the same steps as me. I had the same problems you're describing and this was sufficient to get things working. Just to re-iterate in one place what I had to do:

  • Installed the latest Firefox:
firefox --version
Mozilla Firefox 49.0.1
  • Installed geckodriver (AKA wires). I did this via the Arch AUR. This created the (necessary?) symlink as follows, which you might have to do manually:
ls -l /usr/bin/wires
lrwxrwxrwx 1 root root 20 Sep 30 13:56 /usr/bin/wires -> /usr/bin/geckodriver
wires --version
geckodriver 0.10.0

The source is available at https://github.com/mozilla/geckodriver

This program is subject to the terms of the Mozilla Public License 2.0.
You can obtain a copy of the license at https://mozilla.org/MPL/2.0/.
  • Installed the latest selenium beta version:
pip install -U selenium==3.0.0b3
Requirement already up-to-date: selenium==3.0.0b3 in /usr/lib/python3.5/site-packages
pip list | grep -E "(selenium|splinter)"
pytest-splinter (1.7.6)
selenium (3.0.0b3)
splinter (0.7.4)
  • I did not have to change any other capabilities. I am running into a different (and unrelated) problem now, with how the new driver handles profiles and untrusted SSL pages, just FYI if you run into that. But that should be obvious if it becomes a problem for you

martinpelikan avatar Oct 03 '16 23:10 martinpelikan

Closing due to inactivity.

javascript-error avatar Mar 31 '21 19:03 javascript-error