0

I have a Maven project, running Selenium (and Cucumber) in my test suite.

Currently, I'm running Selenium 4.27, with selenium manager handling the ChromeDriver etc.

Trying to upgrade to Selenium 4.28 completely breaks my imports. In my Browser.java file, the imports becoms not found the second I load the 4.28.0 dependencies in Maven:

import org.openqa.selenium.Capabilities; (Capabilities is red)
import org.openqa.selenium.InvalidArgumentException; (InvalidArgumentException is red)
import org.openqa.selenium.JavascriptExecutor; (JavascriptExecutor is red)
import org.openqa.selenium.WebDriver; (WebDriver is red)
import org.openqa.selenium.chrome.ChromeDriver; (chrome is red)
import org.openqa.selenium.chrome.ChromeOptions; (chrome is red)
import org.openqa.selenium.remote.CommandExecutor; (chrome is red)
import org.openqa.selenium.remote.LocalFileDetector; (LocalFileDetector is red) 
import org.openqa.selenium.remote.RemoteWebDriver; (RemoteWebDriver is red)
import org.openqa.selenium.remote.service.DriverService; (service is red)
import org.openqa.selenium.support.ui.WebDriverWait; (support is red)
import org.openqa.selenium.remote.CommandExecutor;  (CommandExecutor is red)
import org.openqa.selenium.remote.RemoteWebDriver; (RemoteWebDriver is red)
import org.openqa.selenium.remote.service.DriverService; (service is red)

It's completely consistant; The second I reload Maven with 27, all imports are found. And likewise, when reload with 28, all are red.

I'm guessing this is not a change in Selenium, and the error is somehow on my end. But no remedy seems to work, importing, purging local repo, clearing/invalidating caches etc. etc. It's 100% consistant.

I'm using IntelliJ, by the way.

1
  • please, could you provide the pom.xml ? Commented Aug 22 at 13:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.