简体   繁体   English

如何更新 selenium-webdriver 的版本?

[英]How to update selenium-webdriver's version?

I'm using Protractor 5.4.2 .我正在使用量角器5.4.2 How do I update to the latest available selenium-webdriver version, ie 4.0.0-alpha-5 .如何更新到最新的可用selenium-webdriver版本,即4.0.0-alpha-5

You can install 4.0.0-alpha.5 directly with the following command您可以使用以下命令直接安装 4.0.0-alpha.5

npm i selenium-webdriver npm i selenium-webdriver

But I would not recommend you to update alone selenium-webdriver because something may break.但我不建议您单独更新 selenium-webdriver,因为可能会出现问题。

For Maven as build automation tool in your project you can simply add in your pom:对于 Maven 作为项目中的构建自动化工具,您只需在 pom 中添加:

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.0.0-alpha-2</version>
</dependency>

You can have a look: dependencies build tool你可以看看: 依赖项构建工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM