The import org.openqa.selenium.remote.CapabilityType cannot be resolved

Viewed 11594

I can't do the following two imports in Selenium 3.4.0

import org.openqa.selenium.remote.CapabilityType;  
import org.openqa.selenium.remote.DesiredCapabilities;

My maven dependencies for selenium is as below:

<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> 

I'm getting error messageslike The import org.openqa.selenium.remote.CapabilityType cannot be resolved in Eclipse

What could be the problem?

2 Answers
Related