什么ChromeDriver不需要Chrome或Chromium

什么ChromeDriver不需要Chrome或Chromium

本文介绍了为什么ChromeDriver不需要Chrome或Chromium?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使我没有安装Chrome或Chromium,ChromeDriver仍可在我的系统上运行.基于名称,我认为这就像一个汽车司机",您仍然需要汽车才能上车.也许就像产品的API,您仍然需要该产品才能通过API调用来完成某项工作.

ChromeDriver is working on my system even though I don't have Chrome or Chromium installed. Based on the name, I thought it was like a "car driver" where you still need a car to get going. Or maybe like a product's API where you still need the product for your API calls to accomplish something.

糟糕,毕竟已经安装了Chromium.

Whoops, Chromium is installed after all.

推荐答案

当然 ChromeDriver 需要 Chrome Chromium .

按照> ChromeDriver-适用于Chrome的WebDriver > ChromeDriver是WebDriver用于控制Chrome的独立可执行文件.

As per ChromeDriver - WebDriver for Chrome ChromeDriver is a separate executable that WebDriver uses to control Chrome.

现在,按照> 要求-ChromeDriver >服务器希望您将 Chrome 安装在每个系统的默认位置,如下所示:

Now, as per Requirements - ChromeDriver the server expects you to have Chrome installed in the default location for each system as follows:

您还可以通过设置特殊功能来强制ChromeDriver使用自定义位置.您可以在 在非标准位置使用Chrome可执行文件

You can also force ChromeDriver to use a custom location by setting a special capability. You can find the documentation in Using a Chrome executable in a non-standard location

这篇关于为什么ChromeDriver不需要Chrome或Chromium?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 17:30