from selenium import webdriver
import selenium
driver = webdriver.Chrome("F:\\Chromedriver.exe")
3
votes
from selenium import webdriver
import selenium
driver = webdriver.Chrome()
driver.get("http://www.python.org")
C should be capital in webdriver.Chrome()
Also, the path for driver is not required. The driver is already installed on the computer.
1
votes
Yor are miss spell the class name. It is not chrome(), Chrome().
webdriver.chrome("F:\\chromedriver.exe")
to
webdriver.Chrome("F:\\chromedriver.exe")
or
webdriver.Chrome()
1
votes
from selenium import webdriver
import selenium
driver = webdriver.Chrome(r"C:\Users\007\Desktop\chromedriver_win32\chromedriver.exe")
driver.get("http://www.python.org")
0
votes
first install webdriver manager and write the below code
pip install webdriver-manager
from webdriver_manager.chrome import ChromeDriverManager
from selenium import webdriver
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get("desired url")
0
votes
Can you do this to see if it's installed?
import selenium
print selenium.__version__
As for the
driver = webdriver.chrome("F:\\chromedriver.exe")
You can just use:
driver = webdriver.Chrome();
in Chrome the c has to be a capital letter.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
?- hellow