I need to automate geolocation in chrome using python script. I have to fake the latitude and longitude. I followed some links in stackoverflow but they gave errors.
Using Python with Selenium 3.141 and ChromeDriver 83.0
This is the working method I found:
params = { "latitude": 34.0207305, "longitude": -118.6919153, "accuracy": 100 } driver.execute_cdp_cmd("Emulation.clearGeolocationOverride", params)