Skip to content

SB and Geolocation #2903

Answered by mdmintz
Allmight3 asked this question in Q&A
Discussion options

You must be logged in to vote

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 )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants