Re: Selenium webdriver won't open web page

8,274 views
Skip to first unread message

s.anth...@gmail.com

unread,
Apr 18, 2013, 3:05:37 PM4/18/13
to seleniu...@googlegroups.com
We need more information to help you.  Are any errors thrown?  Are you running this locally?  If so, are you able to manually open Firefox and visit the URL?

You might want to try something as simple as this to verify it's not code related:

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

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


On Wednesday, April 17, 2013 12:24:53 PM UTC-7, Brian Fisher wrote:
A Python program using:
 
browser = webdriver.Firefox()
browser.get(url)
 
where url is a valid web address worked upto last week but now just opens Firefox but fails to show the web page.
 
Using Selenium 2.29.0
 
Hel[p please.

Brian Fisher

unread,
Apr 18, 2013, 3:58:32 PM4/18/13
to seleniu...@googlegroups.com
I have tried your code and Firefox opens but does not show the web address, but I can enter the URL manually in that opened Firefox and visit the site.
Yes, I am running this locally.
There are no error messages.
I can open Firefox manually, independant of Python, and visit a site.

Srisowrabha Kumar

unread,
Apr 20, 2013, 2:46:53 AM4/20/13
to seleniu...@googlegroups.com
Hi Brian,

We had faced similar issue and was able to identify the root cause. If proxy is set in IE(if Windows OS), FF browser is launched, however, the required web page fails to launch through script.
Disable proxy on IE and execute the script. :)

Thanks,

Sowrabha

Tarun Kumar

unread,
Apr 23, 2013, 11:29:11 PM4/23/13
to seleniu...@googlegroups.com
Does URL variable get the URL value when you run the tests?

Brian Fisher

unread,
May 13, 2013, 12:27:27 PM5/13/13
to seleniu...@googlegroups.com
Hi Sowrabha,
 
My IE proxy is disabled. I have tried resetting the Windows Firewall, but that has not helped.
Regards, Brian

Brian Fisher

unread,
May 13, 2013, 12:35:44 PM5/13/13
to seleniu...@googlegroups.com
In fact my test is:
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://www.google.com')
browser.quit()

Tarun Kumar

unread,
May 13, 2013, 11:25:21 PM5/13/13
to seleniu...@googlegroups.com
Which version of FF are you on?
Could you try with latest selenium download available at SeleniumHQ ?

Brian Fisher

unread,
May 15, 2013, 7:55:50 AM5/15/13
to seleniu...@googlegroups.com
I was using FF v20.0.1 Funnelcake Jul 2012 mozilla12 - 1.0 and have already updated Selenium to v 2.32.0.
Now updated FF to v21.0  Funnelcake Jul 2012 mozilla12 - 1.0 but still have the same problem.

Brian Fisher

unread,
May 15, 2013, 11:26:42 AM5/15/13
to seleniu...@googlegroups.com
Further to my last, I have downloaded IEDriverServer_x64_2.32.3.zip and unzipped it. Then tried:
 
from selenium import webdriver
driver = webdriver.Ie()
driver.get('http://www.google.com')
 
Which opened the page in IE ok. So what is going wrong with my Firefox test?
Reply all
Reply to author
Forward
0 new messages