Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Selenium webdriver handling errors

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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:

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading