Howdy, I'm not totally new to Python but I am new to Python 3. I'm starting to work through the book but having trouble just getting the pre-reqs set up properly (apparently).
I've used pip-3.3 to install Selenium but when I try the very first "functional_tests.py" script on page 3 I can't import webdriver, I get the error "ImportError: cannot import name webdriver". I've made sure selenium and webdriver are in the right place
/usr/lib/python3.3/site-packages/selenium/webdriver/
and that python has the proper path
>>> sys.path
['', '/usr/lib/python3.3/site-packages/setuptools-2.0-py3.3.egg', '/usr/lib64/python33.zip', '/usr/lib64/python3.3', '/usr/lib64/python3.3/plat-linux', '/usr/lib64/python3.3/lib-dynload', '/usr/lib64/python3.3/site-packages', '/usr/lib/python3.3/site-packages']
and that there is only one copy of Selenium on the system
[root@localhost steve]# updatedb
[root@localhost steve]# locate selenium.py
/usr/lib/python3.3/site-packages/selenium/selenium.py
I CAN import selenium and it is where I expect it:
>>> import selenium
>>> selenium.__path__
['/usr/lib/python3.3/site-packages/selenium']
but not webdriver (starting over in a fresh invocation of python).
>>> from selenium import webdriver
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name webdriver
My googling attempts have not yielded anything helpful, other than warnings that Python3 does handle relative imports differently than Python2, but nothing I've followed up on with that seems appropriate. Does anyone have any suggestions or ideas? Thanks.