Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

I have tried updating Selenium to version 2.0.1 But now I have another error, even when the profile files exist under  /tmp/webdriver-py-profilecopy:

File "/home/sultan/Repository/Django/monitor/app/", line 236, in perform

    browser = Firefox(profile)

  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 46, in __init__

    self.binary, timeout),

  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 46, in __init__


  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 44, in launch_browser


  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/", line 87, in _wait_until_connectable

    raise WebDriverException("Can't load the profile. Profile Dir : %s" % self.profile.path)

selenium.common.exceptions.WebDriverException: Can't load the profile. Profile Dir : /tmp/webdriver-py-profilecopy

What is wrong? How can I resolve this issue?

1 Answer

0 votes
by (62.9k points)

The solution was not to update Selenium with the latest version(though you should if the latest version is available or Selenium might already be in the latest version). But, it was to downgrade Firefox to version thirty.

Here is the process:

#Download version 30 for Linux (This is the 64 bit)

#Download version 30 for Linux (This is the 64 bit)


tar -xjvf firefox-30.0.tar.bz2

#Remove the old version

sudo rm -rf /opt/firefox*

sudo mv firefox /opt/firefox30.0

#Create a permanent link

sudo ln -sf /opt/firefox30.0/firefox /usr/bin/firefox

I hope helps!

Browse Categories