chromedriver.exe edge
时间: 2023-09-22 14:11:39 浏览: 99
chromedriver.exe
3星 · 编辑精心推荐
Chrome浏览器驱动程序(chromedriver.exe)的下载地址是https://registry.npmmirror.com/binary.html?path=chromedriver/,而Edge浏览器驱动程序的下载地址是https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/。 如果你使用WebDriverManager库来自动管理所需的驱动程序,你可以使用以下代码指定chromedriver.exe和msedgedriver.exe的路径:System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver.exe"); System.setProperty("webdriver.edge.driver", "/path/to/msedgedriver.exe"); 另外,如果你想手动安装驱动程序,你可以按照以下步骤进行操作:1、查看浏览器版本;2、下载浏览器对应版本的驱动程序,需和电脑系统一致;3、解压得到chromedriver.exe或msedgedriver.exe驱动程序;4、将驱动程序放在Python解释器根目录下;5、验证是否安装成功,可以使用以下代码来测试:from selenium import webdriver chrome = webdriver.Chrome() chrome.get('https://www.baidu.com')。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [selenium 驱动 Chrome / Edge](https://blog.csdn.net/weixin_42322454/article/details/127185761)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [webdrivermanager:Selenium WebDriver的自动驱动程序管理](https://download.csdn.net/download/weixin_42116847/14986753)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [谷歌、火狐、Edge浏览器驱动下载及安装](https://blog.csdn.net/qq_37515374/article/details/128651883)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文