0

I'm wanting to create Watir tests for my application which uses data taken from Geo Location. However I want the tests to be able to change the Geo location data so the application believes it is reviving new information.

Is it possible to fake geo-location using Watir? And how?

Simon
  • 375
  • 5
  • 12
  • If you were to manually execute the test, how would you fake the geo-location? – Justin Ko Oct 05 '12 at 01:52
  • @JustinKo have a browser widget in Chrome, called Ripple and it fakes the geo-location. But I'm not too sure how. – Simon Oct 05 '12 at 10:38

1 Answers1

1

For Firefox, you can fake your loction by setting geo.wifi.url option. See Geolocation provider for Firefox that allows manual input for details.

Therefore, it should be OK to use Watir's Firefox driver setting that option and fake a location.

Community
  • 1
  • 1
Zifei Tong
  • 1,697
  • 1
  • 19
  • 32