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

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

      • <bdo id='aWFCP'></bdo><ul id='aWFCP'></ul>

      1. selenium.common.exceptions.WebDriverException:消息:“库&q

        时间:2023-10-08

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

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

          • <bdo id='JFBen'></bdo><ul id='JFBen'></ul>

              1. <legend id='JFBen'><style id='JFBen'><dir id='JFBen'><q id='JFBen'></q></dir></style></legend>
                <tfoot id='JFBen'></tfoot>

                  <tbody id='JFBen'></tbody>
                  本文介绍了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 有错误的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Python、Selenium 和 Chromedriver - 使用 find_element_by_i 下一篇:selenium.common.exceptions.WebDriverException:消息:无法通过

                  相关文章

                  最新文章

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

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

                    • <bdo id='QfiXI'></bdo><ul id='QfiXI'></ul>
                    1. <legend id='QfiXI'><style id='QfiXI'><dir id='QfiXI'><q id='QfiXI'></q></dir></style></legend>
                    2. <tfoot id='QfiXI'></tfoot>