<legend id='6fGx9'><style id='6fGx9'><dir id='6fGx9'><q id='6fGx9'></q></dir></style></legend>
    <bdo id='6fGx9'></bdo><ul id='6fGx9'></ul>

    1. <small id='6fGx9'></small><noframes id='6fGx9'>

      1. <i id='6fGx9'><tr id='6fGx9'><dt id='6fGx9'><q id='6fGx9'><span id='6fGx9'><b id='6fGx9'><form id='6fGx9'><ins id='6fGx9'></ins><ul id='6fGx9'></ul><sub id='6fGx9'></sub></form><legend id='6fGx9'></legend><bdo id='6fGx9'><pre id='6fGx9'><center id='6fGx9'></center></pre></bdo></b><th id='6fGx9'></th></span></q></dt></tr></i><div id='6fGx9'><tfoot id='6fGx9'></tfoot><dl id='6fGx9'><fieldset id='6fGx9'></fieldset></dl></div>

        <tfoot id='6fGx9'></tfoot>

      2. selenium.common.exceptions.WebDriverException:消息:“库"可执行

        selenium.common.exceptions.WebDriverException: Message: #39;library#39; executable may have wrong permissions for ChromeDriver(selenium.common.exceptions.WebDriverException:消息:“库可执行文件可能对 ChromeDriver 有错误的权限) - IT屋-程序员

          <tbody id='qpT7n'></tbody>
        • <legend id='qpT7n'><style id='qpT7n'><dir id='qpT7n'><q id='qpT7n'></q></dir></style></legend>
          <i id='qpT7n'><tr id='qpT7n'><dt id='qpT7n'><q id='qpT7n'><span id='qpT7n'><b id='qpT7n'><form id='qpT7n'><ins id='qpT7n'></ins><ul id='qpT7n'></ul><sub id='qpT7n'></sub></form><legend id='qpT7n'></legend><bdo id='qpT7n'><pre id='qpT7n'><center id='qpT7n'></center></pre></bdo></b><th id='qpT7n'></th></span></q></dt></tr></i><div id='qpT7n'><tfoot id='qpT7n'></tfoot><dl id='qpT7n'><fieldset id='qpT7n'></fieldset></dl></div>

            <small id='qpT7n'></small><noframes id='qpT7n'>

              <bdo id='qpT7n'></bdo><ul id='qpT7n'></ul>

                  <tfoot id='qpT7n'></tfoot>

                  本文介绍了selenium.common.exceptions.WebDriverException:消息:“库"可执行文件可能对 ChromeDriver 有错误的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想使用 chrome 网络驱动程序连接到https://www.google.com".下面是代码.

                  I want to use the chrome webdriver to connect to "https://www.google.com". below is the code.

                  from selenium import webdriver  
                  import time  
                  
                  driver = webdriver.Chrome("C:\Users\faisal\library")  
                  driver.set_page_load_timeout(10)  
                  driver.get("https://www.google.com")  
                  driver.find_element_by_name("q").send_keys(" automation by name ")  
                  driver.find_element_by_name("blink").click()  
                  time.sleep(5)  
                  driver.close()  
                  

                  当我运行测试时,显示以下错误消息.这是一个权限问题

                  When I run the test, the following error message is displayed.Its a permission problem

                  C:UsersfaisalPycharmProjectsfirstSeleniumTest2venvScriptspython.exe C:/Users/faisal/PycharmProjects/firstSeleniumTest2/test.py
                  Traceback (most recent call last):
                    File "C:UsersfaisalPycharmProjectsfirstSeleniumTest2venvlibsite-packagesseleniumwebdrivercommonservice.py", line 76, in start
                      stdin=PIPE)
                    File "C:Pythonlibsubprocess.py", line 709, in __init__
                      restore_signals, start_new_session)
                    File "C:Pythonlibsubprocess.py", line 997, in _execute_child
                      startupinfo)
                  PermissionError: [WinError 5] Access is denied
                  
                  During handling of the above exception, another exception occurred:
                  
                  Traceback (most recent call last):
                    File "C:/Users/faisal/PycharmProjects/firstSeleniumTest2/test.py", line 4, in <module>
                      driver = webdriver.Chrome("C:\Users\faisal\library")
                    File "C:UsersfaisalPycharmProjectsfirstSeleniumTest2venvlibsite-packagesseleniumwebdriverchromewebdriver.py", line 68, in __init__
                      self.service.start()
                    File "C:UsersfaisalPycharmProjectsfirstSeleniumTest2venvlibsite-packagesseleniumwebdrivercommonservice.py", line 88, in start
                      os.path.basename(self.path), self.start_error_message)
                  selenium.common.exceptions.WebDriverException: Message: 'library' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
                  
                  
                  Process finished with exit code 1
                  

                  推荐答案

                  C:Usersfaisallibrary 不是 chromedriver 的正确路径.提供 chromedriver 文件的实际路径.

                  C:Usersfaisallibrary is not the correct path to chromedriver. Give the actual path to your chromedriver file.

                  这篇关于selenium.common.exceptions.WebDriverException:消息:“库"可执行文件可能对 ChromeDriver 有错误的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)
                  <legend id='mQ4dA'><style id='mQ4dA'><dir id='mQ4dA'><q id='mQ4dA'></q></dir></style></legend>

                      <tbody id='mQ4dA'></tbody>

                    <small id='mQ4dA'></small><noframes id='mQ4dA'>

                    <tfoot id='mQ4dA'></tfoot>

                          <bdo id='mQ4dA'></bdo><ul id='mQ4dA'></ul>
                          • <i id='mQ4dA'><tr id='mQ4dA'><dt id='mQ4dA'><q id='mQ4dA'><span id='mQ4dA'><b id='mQ4dA'><form id='mQ4dA'><ins id='mQ4dA'></ins><ul id='mQ4dA'></ul><sub id='mQ4dA'></sub></form><legend id='mQ4dA'></legend><bdo id='mQ4dA'><pre id='mQ4dA'><center id='mQ4dA'></center></pre></bdo></b><th id='mQ4dA'></th></span></q></dt></tr></i><div id='mQ4dA'><tfoot id='mQ4dA'></tfoot><dl id='mQ4dA'><fieldset id='mQ4dA'></fieldset></dl></div>