I just installed selenium with pip like
pip install selenium
and installed
geckidriver.exe
and put it in
C:\\Program Files\\Mozilla Firefox
where my
firefox.exe
is in.
But when I run a code
from selenium import webdriver
browser = webdriver.Firefox()
it returns
C:\Users\asd\PycharmProjects\tomato\venv\Scripts\python.exe C:/Users/asd/Downloads/pycharmprojects/tomato/test.py
Traceback (most recent call last):
File "C:/Users/asd/Downloads/pycharmprojects/tomato/test.py", line 2, in <module>
browser = webdriver.Firefox()
AttributeError: module 'selenium.webdriver' has no attribute 'Firefox'
Process finished with exit code 1
I'm using python3 in anaconda3(32bit), on windows7(64bit).
What did I wrong?