webdriverio: driver does not support org.openqa.selenium.html5.LocationContext

I am not sure where the origin of the error is, so I’m filing this here in the hopes that someone might shed some light on the issue.

Here’s what I am doing after installing the v2.0.0 branch as a node module:

client = webdriverjs.remote({
    desiredCapabilities: {
        browserName: 'firefox',
        locationContextEnabled: true
    }
});

client.init() 
    .setGeoLocation({latitude: 52, longitude: 13, altitude: 1});

Here’s the error:

Uncaught RuntimeError
(UnknownError:13) An unknown server-side error occurred while processing the command.
Problem: driver (org.openqa.selenium.firefox.FirefoxDriver) does not support org.openqa.selenium.html5.LocationContext
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
System info: host: 'abc.local', ip: '1.2.3.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.2', java.version: '1.6.0_65'
Driver info: driver.version: unknown

The same issue with phantomjs and chrome as browser, even though I have enabled locationContextEnabled in the desiredCapabilities (which it is by default, as I understood). So why does this happen?

Please also note, that there seems to be an issue with the setGeoLocation code. Selenium seems to expect this: {location: {latitude: 1, longitude: 2, altitude: 3}} and gets this from setGeoLocation: {latitude: 1, longitude: 2, altitude: 3}.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Same issue when use localStorage.