@@ -115,8 +115,6 @@ def driver_extensions
115
115
DriverExtensions ::HasSessionId ,
116
116
DriverExtensions ::Rotatable ,
117
117
DriverExtensions ::HasTouchScreen ,
118
- DriverExtensions ::HasLocation ,
119
- DriverExtensions ::HasNetworkConnection ,
120
118
DriverExtensions ::HasRemoteStatus ,
121
119
DriverExtensions ::HasWebStorage
122
120
]
@@ -367,21 +365,19 @@ def getSessionStorageSize
367
365
end
368
366
369
367
def getLocation
370
- obj = execute ( :getLocation ) || { } # android returns null
371
- Location . new obj [ 'latitude' ] , obj [ 'longitude' ] , obj [ 'altitude' ]
368
+ raise Error ::WebDriverError ::UnsupportedOperationError , 'The W3C standard does not currently support getting location'
372
369
end
373
370
374
- def setLocation ( lat , lon , alt )
375
- loc = { :latitude => lat , :longitude => lon , :altitude => alt }
376
- execute :setLocation , { } , :location => loc
371
+ def setLocation ( _lat , _lon , _alt )
372
+ raise Error ::WebDriverError ::UnsupportedOperationError , 'The W3C standard does not currently support setting location'
377
373
end
378
374
379
375
def getNetworkConnection
380
- execute :getNetworkConnection
376
+ raise Error :: WebDriverError :: UnsupportedOperationError , 'The W3C standard does not currently support getting network connection'
381
377
end
382
378
383
- def setNetworkConnection ( type )
384
- execute :setNetworkConnection , { } , :parameters => { :type => type }
379
+ def setNetworkConnection ( _type )
380
+ raise Error :: WebDriverError :: UnsupportedOperationError , 'The W3C standard does not currently support setting network connection'
385
381
end
386
382
387
383
#
0 commit comments