I tried to use this method to set a fake location.
public void setFakeLocation() {
Location location = new Location(46.88608416790451, 17.8930952681637);
getDriver().setLocation(location);
}
Error message:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: longitude must be provided
Build info: version: ‘4.18.1’, revision: ‘b1d3319b48’
System info: os.name: ‘Windows 11’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘21.0.2’