Selenium Java

38 views
Skip to first unread message

Arafat Dipto

unread,
Jun 1, 2025, 7:53:00 AMJun 1
to Selenium Users
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.
Reply all
Reply to author
Forward
0 new messages