cobrateam/splinter — Issue #120: Browser instance on a network with proxy
Author: cassionandi
Created: 2011-11-08 18:57:05+00:00
State: open

Hi.

I'm trying to run Splinter in a Windows 7 machine, in a local network that needs a proxy.

When a new instance of the Browser() is created in the python shell, a firefox window pop-ups with the profile different than the one that I use. So, this new instance and profile don't have none of the configs for proxy.

This is the message generated by the "browser = Browser()" code:

Traceback (most recent call last):
File "C:\Users\cassio.nandi\Desktop\splinter\exemplo.py", line 3, in
browser = Browser()
File "C:\Python27\lib\site-packages\splinter\browser.py", line 46, in Browser
return driver(*args, **kwargs)
File "C:\Python27\lib\site-packages\splinter\driver\webdriver\firefox.py", line 23, in __init__
self.driver = Firefox(firefox_profile)
File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 47, in __init__
desired_capabilities=DesiredCapabilities.FIREFOX)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 61, in __init__
self.start_session(desired_capabilities, browser_profile)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 98, in start_session
'desiredCapabilities': desired_capabilities,
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 144, in execute
self.error_handler.check_response(response)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 100, in check_response
raise exception_class(value)
WebDriverException: Message: '\n

\n

ERRO: A URL solicitada não pode ser recuperada

\n\n

\n

ERRO

\n

A URL solicitada não pode ser recuperada

\n

\n

\nNa tentativa de recuperar a URL:\nhttp://127.0.0.1:51372/hub/session\n

\nO seguinte erro foi encontrado:\n

\n
\n\nProibido o Acesso.\n\n

\nO controle de acessos impediu sua requisição.\nCaso você não concorde com isso, por favor, \ncontate seu provedor de serviços, ou o administrador de sistemas.\n

\n

\n\n\n
\n

\n

\nGenerated Tue, 08 Nov 2011 18:27:08 GMT by proxy (squid/2.6.STABLE21)\n

\n

\n'