Reputation: 752
I have been trying to load my Firefox (Mozilla Firefox 49.0), with simple python script and with the assistance of selenium-2.53.6 on Ubuntu 16.04.1 LTS, but even selenium's basic example 0 doesn't work:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')
I always get after about 5 seconds a timeout, and firefox crashes with the following message:
"Can't load the profile. Profile Dir: /tmp/tmpl5qlfokc If you specified a log_file in the FirefoxBinary constructor, check it for details"
so I created a specific firefox profile (profile -p), and used it, wrote:
profile = webdriver.FirefoxProfile('absolute path to profile folder')
driver = webdriver.Firefox(profile)
but still it seems no matter what I do, the browser crashes after 5 seconds.
Read the post can't load profile on firefox and followed the instructions but still unfortunately the same result. does anyone know how to overcome this the issue?
Thank you all!
Upvotes: 0
Views: 1723
Reputation: 671
For firefox 49.0 you need selenium 3(it's in beta stage, that's why you can't download it with pip -U
) and geckodriver.
try this:
wget https://github.com/mozilla/geckodriver/releases/download/v0.10.0/geckodriver-v0.10.0-linux64.tar.gz
tar xzvf geckodriver-v0.10.0-linux64.tar.gz
cp geckodriver /usr/bin/
pip install selenium==3.0.0b3
Upvotes: 4