I'm trying to work through Automating the Boring stuff with Python, and the selenium section has me at a standstill. Hopefully someone here can guide me back on the path...
The commands I try to type in the python 3.4 console are:
from selenium import webdriver
browser = webdriver.Firefox()
type(browser)
The first command completes without error. On the second command, Firefox does indeed open and I can manually use it. However, here the console refuses to accept the third command. If I try, I get "the previous command is still running...". I have to Ctrl-C or close Firefox to get the prompt back. Then I can type the third command, but at that point, it's kind of useless. According to the book, the "type(browser)" is supposed to return "<class 'selenium.webdriver.firefox.webdriver.WebDriver'>". But after I kill Firefox, it returns "<class 'module'>".
I believe the problem is the
browser = webdriver.Firefox()
is not supposed to lock the console. What am I doing wrong?