David J.
David J.

Reputation: 1913

Open Firefox in Selenium for Python w/ Windows 10

I'm trying to follow along with this tutorial

http://chimera.labs.oreilly.com/books/1234000000754/ch01.html#_obey_the_testing_goat_do_nothing_until_you_have_a_test

which has me code the following to open a firefox browser using Selenium:

from selenium import webdriver

browser = webdriver.Firefox()
browser.get('http://localhost:8000')

assert 'Django' in browser.title

However, firefox opens to an annoying Windows 10 'welcome' page, and never visits the url I specify. How do I get around this?

Upvotes: 2

Views: 1488

Answers (1)

alecxe
alecxe

Reputation: 473863

Firefox 43 and selenium 2.47 have compatibility issues.

Upgrade selenium to the latest (currently, 2.48) version:

pip install --upgrade selenium

Upvotes: 6

Related Questions