SB and Geolocation
#2903
-
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Jul 4, 2024
Replies: 1 comment
-
The GeoLocation example: SeleniumBase/examples/test_geolocation.py. When the driver is disconnected (which is needed to make chromedriver undetectable) any To make the GeoLocation changes persistent, you need to use a Chrome extension. But note that you can't add extensions when you browse in Incognito mode or as a guest. (https://support.google.com/chrome_webstore/answer/2664769?hl=en ) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The GeoLocation example: SeleniumBase/examples/test_geolocation.py.
When the driver is disconnected (which is needed to make chromedriver undetectable) any
execute_cdp_cmd
changes are reset (because those changes are effective only while the driver is connected).To make the GeoLocation changes persistent, you need to use a Chrome extension. But note that you can't add extensions when you browse in Incognito mode or as a guest. (https://support.google.com/chrome_webstore/answer/2664769?hl=en )