Issue
Hello I am a beginner to python and selenium and I wanted to make a simple program that open google chrome. Am using PyCharm.
This is the code: Code image
And this is the errors that are being thrown: Error image
I have tried to reinstall selenium or the web driver but it just doesn't work, also at the start I used the path that is in the top side of the image, and after that I saw someone that said that maybe the webdriver_manager
could fix it. Needless to say it didn't work.
Solution
Just use the below code:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.techwithtim.net/")
No need of WebDriverManager
when you use latest selenium. Refer below answer for more details:
Answered By - Shawn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.