cobrateam / splinter

splinter - python test framework for web applications
http://splinter.readthedocs.org/en/stable/index.html
BSD 3-Clause "New" or "Revised" License
2.72k stars 509 forks source link

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

Closed LeandroPessoa closed 3 years ago

LeandroPessoa commented 8 years ago

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.

andrewsmedina commented 8 years ago

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

LeandroPessoa commented 8 years ago

selenium==2.53.6 splinter==0.7.4

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

martinpelikan commented 8 years ago

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

LeandroPessoa commented 8 years ago

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

martinpelikan commented 8 years ago

@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.

LeandroPessoa commented 8 years ago

@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.

jahlopez1988 commented 8 years ago

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.

martinpelikan commented 8 years ago

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:

firefox --version
Mozilla Firefox 49.0.1
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/.
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)
jsfehler commented 3 years ago

Closing due to inactivity.