Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS

后端 未结 4 576
一向
一向 2020-12-10 16:47

I got this while running the selenium webdriver script in python I also set the path in System Environment and also tried downloading the webdriver that matches with my chro

4条回答
  •  情歌与酒
    2020-12-10 17:15

    The error is probably because you have used parenthesis in the resource_path variable. The code should be as following:

    driver = webdriver.Chrome(resource_path="C:\webdriver\chromedriver.exe") # to open the chromebrowser 
    driver.get("https://web.whatsapp.com")
    

    if still there is any problem you can try keeping the web driver in the same folder as the python file.

提交回复
热议问题