我不能做硒以下兩個進口硒3.4.0進口org.openqa.selenium.remote.CapabilityType不能得到解決
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
我的Maven依賴是如下:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.4.0</version>
</dependency>
我收到提示messageslike The import org.openqa.selenium.remote.CapabilityType cannot be resolved
在Eclipse
可能是什麼問題呢?
嘗試'項目右側mouse' - >'maven' - >'更新project' - >'更新depedencies' – ByeBye
@ByeBye我已經做到了很多次,仍然不起作用。 – chenzen