I was using selenium-java and selenium-chrome-driver. Both version 4.26
And this is how I connect to existing browser session.
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setExperimentalOption("debuggerAddress", "localhost:9223");
driver = new ChromeDriver(chromeOptions);
But I am getting error when I tried to updated to latest version which is 4.32. These classes are not present on latest version. And I don't know how to create chromeOptions and driver instances. I find out that the classes were renamed to ChromiumOptions and ChromiumDriver. Still I can't create instance. Please help.