cls.profile = FirefoxProfile()
cls.profile.set_preference('geo.prompt.testing', True)
cls.profile.set_preference('geo.prompt.testing.allow', True)
cls.profile.set_preference('geo.wifi.uri', GEOLOCATION_PATH)
Always Allow Geolocation in Firefox using Selenium