PyChromeDevTools
PyChromeDevTools copied to clipboard
setGeolocationOverride
Hi, trying to geolocate the browser doesn't seem to work.
print(chrome.Emulation.canEmulate()) returns {'id': 3, 'result': {'result': True}} - OK
chrome.Emulation.setDeviceMetricsOverride(width=2436, height=1125, fitWindow=True, deviceScaleFactor=1, mobile=True) returns a landscaped bigscreen - OK
but... chrome.Emulation.setGeolocationOverride(latitude=27, longitude=78, accuracy=100) then chrome.Page.navigate(url="https://www.google.com/maps") returns Google maps at @40.4992353,-3.8787972,16z, my IP coordinates.
Is it possible to override geolocation with the protocol viewer? Thank you