0
我已經設置在Maven的selenium-java
依賴性:硒的Java依賴於Maven的設置,但硒要求提供驅動程序路徑
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.7.1</version>
</dependency>
但是當我運行一個簡單的測試 - 我得到一個異常的路徑驅動程序沒有設置:The path to the driver executable must be set by the webdriver.chrome.driver system property
足夠設置Maven的依賴是不是對硒? 我錯過了Selenium無法讀取Maven依賴關係?