chrome浏览器驱动selenium
时间: 2023-09-13 14:06:09 浏览: 231
要在Chrome浏览器中运行Selenium,你需要下载并配置ChromeDriver。首先,将Chrome浏览器驱动程序(ChromeDriver)文件放置在Python脚本目录下。然后,在命令行中运行chromedriver可执行文件,这将启动ChromeDriver并连接到Chrome浏览器。这样,你就可以在Chrome浏览器上执行Selenium测试脚本了。ChromeDriver的主要作用是启动Google Chrome浏览器,如果没有ChromeDriver,无法在Google Chrome浏览器中执行Selenium测试用例。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [如何在Chrome浏览器中运行Selenium?](https://blog.csdn.net/qqqqqkmbnjjhb/article/details/109202476)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* [selenium的Chrome浏览器驱动](https://download.csdn.net/download/saqin6255/87781171)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文