Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python selenium geolocation

#Chrome Devtools Protocol
params = {
    "latitude": 50.1109,
    "longitude": 8.6821,
    "accuracy": 100
}

driver = webdriver.Chrome()
driver.execute_cdp_cmd("Page.setGeolocationOverride", params)
driver.get('https://www.google.com/maps')
 
PREVIOUS NEXT
Tagged: #python #selenium #geolocation
ADD COMMENT
Topic
Name
9+3 =