Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

Selenium get(link) is not working properly

$
0
0

So I have written a very basic line of code that uses selenium to open a webpage.

from time import sleepfrom selenium import webdriverfrom selenium.webdriver.chrome.options import Optionsfrom selenium.webdriver.common.by import Byimport warningswarnings.simplefilter('ignore')chrome_options = Options()chrome_options.headless = Falsechrome_options.add_argument('--log-level=3')Path = "D:\Virtual Assistant\Database\chromedriver.exe"driver = webdriver.Chrome(Path, options=chrome_options)driver.get(url='www.youtube.com')sleep(2)

This is the code that I am using.

This code used to work few days ago but it is no longer working and is showing this as an error.The error that is showing

I thought maybe there has been an update in the selenium package and I scoured the internet but couldn't find any solutions

Chrome version: v120.0.6099.225Chrome driver version: v120.0.6099.109Selenium version: v4.1.3

I tried uninstalling and reinstalling the package.Using a different chrome driver version.Nothing worked.


Viewing all articles
Browse latest Browse all 13951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>