I am trying to write test cases in a Django project with Selenium. The statements used to open a Firefox browser are as follows:
class StudentTestCase(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.Firefox()
self.browser.implicitly_wait(2)
def tearDown(self):
self.browser.quit()
However, every time the Firefox browser opens, it tries to connect to https://www.mozilla.org/zh-TW/firefox/42.0/firstrun/learnmore/, which takes a long time downloading a lot of stuff before the browser can be closed (it takes tens of seconds!).
There is a similar question, however, it is a Java solution, instead of a Python/Django one.
So, what's the Python/Django solution about opening a BLANK Firefox browser?