Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

from selenium import webdriver

from selenium.common.exceptions import TimeoutException

from import WebDriverWait # available since 2.4.0

import time

# Create a new instance of the Firefox driver

driver = webdriver.Firefox()

# go to the google home page


This opens a Firefox window but does not open a url.

I have a proxy server(but the address bar does not show the passed url)

I have two Firefox profiles.

Can 1 or 2 be an issue? if yes, then how can I resolve it?

1 Answer

0 votes
by (62.9k points)

It is a Selenium bug The problem is in incorrect proxy processing. Default Ubuntu exclusions are located in a no_proxy environment variable: 


But /8 mask doesn't work for selenium. In order to solve this problem we need to change no_proxy as follows:


You can also remove proxy settings before executing the python script:


If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s advanced Selenium training

Browse Categories