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