Please don't top-post on this list (and many others). Inline or bottom-posted responses are usually preferred like the way that I've rearranged your message below.
On 4 June 2013 02:27, Benjamin Fishbein <bfishbei...@gmail.com> wrote: > On Jun 3, 2013, at 8:08 PM, Benjamin Fishbein wrote: > >> I'm using selenium webdriver with python 2.7. I have some programs I wrote >> with it and they've been working properly for some months. >> But today I tried to write a new program with the selenium module. >> >> from selenium import webdriver >> from selenium.webdriver.common.keys import Keys >> >> driver = webdriver.Firefox() >> driver.get("http://www.python.org") # actually I go to other sites, not >> python.org >> # now there's more but the program never gets to it >> >> The Firefox web browser opens, but it doesn't go to any page. The url >> doesn't even appear in the box at the top of the webbrowser where urls go. >> Do you know what is causing this problem? The only thing I can think of is >> that there's some problem in the settings. I shut down the computer and >> turned it back on, but the problem remains. >> Any help would be greatly appreciated. > > btw I'm on a Mac running 10.7. > And after a couple minutes of not loading any webpage, the program gives me > this error: > > Traceback (most recent call last): > File "/Users/bfishbein/Documents/s_buy2.py", line 7, in <module> > driver = webdriver.Firefox() > File > "/Library/Python/2.7/site-packages/selenium/webdriver/firefox/webdriver.py", > line 58, in __init__ > self.binary, timeout), > File > "/Library/Python/2.7/site-packages/selenium/webdriver/firefox/extension_connection.py", > line 47, in __init__ > self.binary.launch_browser(self.profile) > File > "/Library/Python/2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", > line 48, in launch_browser > self._wait_until_connectable() > File > "/Library/Python/2.7/site-packages/selenium/webdriver/firefox/firefox_binary.py", > line 95, in _wait_until_connectable > self.profile.path, self._get_firefox_output())) > WebDriverException: Message: "Can't load the profile. Profile Dir: > /var/folders/vm/8th3csp91qb47xbhqhb4gcmh0000gn/T/tmpPeqacA Firefox output: > *** LOG addons.xpi: startup\n*** LOG addons.xpi: Skipping unavailable install > location app-system-share\n*** LOG addons.xpi: checkForChanges\n*** LOG > addons.xpi: No changes found\n" > > I can't make any sense of this. Unfortunately neither can I as I've never used selenium. Someone may respond with a good answer to this but I also wouldn't be surprised if no one here understood your problem. This list is mainly for people learning the basics of Python and I think that this seems like quite a specialist problem that might be better directed at a mailing-list/forum that is primarily for selenium/firefox (I'm not sure as I don't really understand what you're doing). Sorry, Oscar _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor