Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/339.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
消息:在python selenium中无法访问chrome_Python_Selenium - Fatal编程技术网

消息:在python selenium中无法访问chrome

消息:在python selenium中无法访问chrome,python,selenium,Python,Selenium,我是python新手。我开始使用python在selenium中工作。当我编写下面的代码时,它显示了一条错误消息。有人能帮我吗?我找不出问题出在哪里 代码: 从selenium导入webdriver path=“C:\ProgramFiles(x86)\chromedriver.exe” driver=webdriver.Chrome(路径) 驱动程序。获取(“https://www.youtube.com“”

我是python新手。我开始使用python在selenium中工作。当我编写下面的代码时,它显示了一条错误消息。有人能帮我吗?我找不出问题出在哪里

代码:

从selenium导入webdriver
path=“C:\ProgramFiles(x86)\chromedriver.exe”
driver=webdriver.Chrome(路径)
驱动程序。获取(“https://www.youtube.com“”