When I execute this code :
ChromeDriver driver = new ChromeDriver();
//40 3
DevTools devTools = driver.getDevTools();
devTools.createSession();
Map<String,Object>coordinates = new HashMap<String,Object>();
coordinates.put("latitude", 40.427939382087814);
coordinates.put("longitude", -3.7056416054815884);
coordinates.put("accuracy", 1);
driver.executeCdpCommand("Emulation.setGeolocationOverride", coordinates);
driver.get("http://google.com");
Chrome don't change the location : selenium4, chrome 95
Message in console :
WARNING: Unable to find an exact match for CDP version 95, so returning the closest version found: 91 oct. 28, 2021 4:13:19 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch INFO: Found CDP implementation for version 95 of 91