简体   繁体   中英

How to update selenium-webdriver's version?

I'm using Protractor 5.4.2 . How do I update to the latest available selenium-webdriver version, ie 4.0.0-alpha-5 .

You can install 4.0.0-alpha.5 directly with the following command

npm i selenium-webdriver

But I would not recommend you to update alone selenium-webdriver because something may break.

For Maven as build automation tool in your project you can simply add in your 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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