Search⌘ K

Working with HTML5 Geolocation

Explore how to test HTML5 geolocation features in web applications using Selenium WebDriver. Understand setting up Firefox browser profiles to pre-allow location sharing and learn how to fake geolocation with JavaScript for testing users in different locations.

‘‘Share Location’’ with Firefox

HTML5 Geolocation API can obtain a user’s position. By using Geolocation API, programmers can develop web applications to provide location-aware services, such as locating the nearest restaurants. When a web page wants to use a user’s location ...