DoubleBass
DoubleBass

Reputation: 1173

Selenium Python unable to go to site in Firefox

My code:

import selenium
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import time, sys, datetime, calendar, os



browser = webdriver.Firefox()
loginURL = "some URL"
browser.get(loginURL)

The browser window opens but then it does nothing (blank white page). Seems like this used to work and now it's not. Why not?

Upvotes: 1

Views: 67

Answers (1)

alecxe
alecxe

Reputation: 473763

Upgrade your selenium package to the latest (currently, 2.42.1) version:

pip install selenium --upgrade

Note, that it is not a shot in the dark - I've reproduced the problem and upgrading helped to solve the issue.

Upvotes: 1

Related Questions