New Selenium: Issues loading URL with Firebox 28 and selenium 2.41

167 views
Skip to first unread message

Jason Mitchell

unread,
Apr 13, 2014, 2:07:12 AM4/13/14
to seleniu...@googlegroups.com
Hi everyone,

I am just getting into using selenium, and can't seem to get the URL to load.   Basically Firefox is opening, but then my URL does not seem to load.  

I just made a quick test script to show my problem.  Firefox opens, but the www.google.com does not load and the script seems to just hang.  After a while it does exit with an error message. 

Running Python 2.7, firefox 28, selenium 2.41 on windows 7 in cygwin

Code:
#!/usr/bin/env python
from selenium import webdriver

driver = webdriver.Firefox()
driver.get('http://www.google.com')
driver.quit()

Output
python test.py
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    driver = webdriver.Firefox()
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
    self.binary, timeout),
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
    self.binary.launch_browser(self.profile)
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 61, in launch_browser
    self._wait_until_connectable()
  File "/usr/lib/python2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", line 105, in _wait_until_connectable
    self.profile.path, self._get_firefox_output()))
selenium.common.exceptions.WebDriverException: Message: "Can't load the profile. Profile Dir: /tmp/tmpRrwgvG Firefox output: "


Any help would be appreciated. 


Alex

unread,
Apr 15, 2014, 8:42:15 AM4/15/14
to seleniu...@googlegroups.com
The error is occurring when trying to create the Firefox Webdriver instance, not when you are trying to get to the webpage. I would suggest looking at this article, http://stackoverflow.com/questions/6682009/selenium-firefoxprofile-exception-cant-load-the-profile,  for help as they seem to have the same problem. 


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/704fb49f-ed1b-44f9-ab21-2d829b4b15c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ahmet Salih Büyükkayhan

unread,
Apr 18, 2014, 3:24:46 PM4/18/14
to seleniu...@googlegroups.com
Hello,

I am using Ubuntu Linux and I can run the tests on Firefox 28.0 (built for Ubuntu) with Selenium 2.41 however I got the same error above when I try to test the firefox that I compiled from source code. 
The article below just recommends to update the selenium but it is the latest version 2.41. Is there any other suggestion?

Thanks,
Reply all
Reply to author
Forward
0 new messages