Google Chrome 版本 113.0.5672.93 的驱动
时间: 2024-06-08 12:12:03 浏览: 161
对于 Google Chrome 版本 113.0.5672.93,你需要安装相应的 Chrome 驱动才能使用 Selenium 进行自动化测试。
你可以通过以下步骤下载和安装适合该版本 Chrome 的驱动:
1. 打开 Chrome 浏览器,点击右上角的三个点,选择“关于 Google Chrome”。
2. 确认你的 Chrome 版本号是 113.0.5672.93。
3. 打开 Chrome 驱动下载页面:https://sites.google.com/a/chromium.org/chromedriver/downloads。
4. 找到适合你操作系统和 Chrome 版本的驱动,下载对应的版本。
5. 解压下载的驱动文件。
6. 将解压后的驱动文件路径添加到系统环境变量 PATH 中,或者在代码中指定驱动文件路径。
安装完成后,你就可以在 Selenium 中设置 ChromeDriver 的路径,然后启动 Chrome 浏览器并进行自动化测试了。
相关问题
[root@localhost tar]# rpm -ivh google-chrome-stable_current_x86_64.rpm warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY error: Failed dependencies: libX11.so.6()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXcomposite.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXdamage.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXext.so.6()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXfixes.so.3()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libXrandr.so.2()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libatk-1.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libatk-bridge-2.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libatspi.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libcairo.so.2()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libcups.so.2()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 liberation-fonts is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libgbm.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libgtk-3.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libpango-1.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libvulkan.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxcb.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0(V_0.5.0)(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 wget is needed by google-chrome-stable-113.0.5672.126-1.x86_64 xdg-utils is needed by google-chrome-stable-113.0.5672.126-1.x86_64
您在安装 Google Chrome 时出现了依赖性错误。这意味着您需要安装一些其他的软件包才能安装 Google Chrome。您可以使用以下命令来安装这些软件包:
```
sudo yum install -y libX11 libXcomposite libXdamage libXext libXfixes libXrandr atk at-spi2-atk cups-libs liberation-fonts vulkan xdg-utils wget
```
安装这些软件包后,再次尝试安装 Google Chrome。
libatk-bridge-2.0.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libatspi.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 liberation-fonts is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libgtk-3.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libvulkan.so.1()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0()(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64 libxkbcommon.so.0(V_0.5.0)(64bit) is needed by google-chrome-stable-113.0.5672.126-1.x86_64
这个错误提示是由于安装 Google Chrome 过程中缺少一些依赖库导致的。您可以尝试通过以下命令安装这些依赖库:
```
sudo dnf install at-spi2-atk liberation-fonts vulkan-headers vulkan-loader gtk3 xkeyboard-config
```
如果您已经安装了这些依赖库,但仍然出现此错误,请尝试重新安装 Google Chrome 或者使用其他版本的 Google Chrome。
阅读全文