<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>[2.40.0,)</version> </dependency> 以上注意version里的[2.40.0,)表示取2.40.0以上最新版本