Problems upgrading from 4.27 to 4.28

25 views
Skip to first unread message

Frank Høvin

unread,
Aug 20, 2025, 4:13:53 AMAug 20
to Selenium Users

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.

Reply all
Reply to author
Forward
0 new messages