<font size="2"><span style="font-family: verdana,sans-serif;">Hi,</span><br style="font-family: verdana,sans-serif;"><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;" lang="EN-US"> I am looking into using Selenium 2.0 for launching Firefox and browse few
sites. I am using Python APIs to talk to webdriver on Ubuntu 11.04. </span><span style="font-family: verdana,sans-serif;">I am basically trying to follow the steps mentioned at <a href="http://pypi.python.org/pypi/selenium">http://pypi.python.org/pypi/selenium</a> . When I run the program, it throws error as below.</span><br style="font-family: verdana,sans-serif;">
<br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">yesudian@yesudian-virtual-machine:~/Try$ sudo python five.py</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">[sudo] password for yesudian:</span><br style="font-family: verdana,sans-serif;">
<span style="font-family: verdana,sans-serif;">Traceback (most recent call last):</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;"> File "five.py", line 6, in <module></span><br style="font-family: verdana,sans-serif;">
<span style="font-family: verdana,sans-serif;"> browser = webdriver.Firefox() # Get local session of firefox</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;"> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 46, in __init__</span><br style="font-family: verdana,sans-serif;">
<span style="font-family: verdana,sans-serif;"> self.binary, timeout),</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;"> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 46, in __init__</span><br style="font-family: verdana,sans-serif;">
<span style="font-family: verdana,sans-serif;"> self.binary.launch_browser(self.profile)</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;"> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 44, in launch_browser</span><br style="font-family: verdana,sans-serif;">
<span style="font-family: verdana,sans-serif;"> self._wait_until_connectable()</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;"> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 87, in _wait_until_connectable</span><br style="font-family: verdana,sans-serif;">
<span style="font-family: verdana,sans-serif;"> raise WebDriverException("Can't load the profile. Profile Dir : %s" % self.profile.path)</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">selenium.common.exceptions.WebDriverException: Message: "Can't load the profile. Profile Dir : /tmp/tmpCR4CB7"</span><br style="font-family: verdana,sans-serif;">
<br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">I tried to launch chrome also and the same issue happens. Do you have any thoughts ?</span><br style="font-family: verdana,sans-serif;">
<br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">Regards</span><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">Yesudian Rajkumar</span></font><br>