Skip to content

Commit

Permalink
rb - update w3c commands and specs for device location and network co…
Browse files Browse the repository at this point in the history
…nnection
  • Loading branch information
titusfortner committed Nov 29, 2015
1 parent e4142a0 commit dd563ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 92 deletions.
16 changes: 6 additions & 10 deletions rb/lib/selenium/webdriver/remote/w3c_bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ def driver_extensions
DriverExtensions::HasSessionId,
DriverExtensions::Rotatable,
DriverExtensions::HasTouchScreen,
DriverExtensions::HasLocation,
DriverExtensions::HasNetworkConnection,
DriverExtensions::HasRemoteStatus,
DriverExtensions::HasWebStorage
]
Expand Down Expand Up @@ -367,21 +365,19 @@ def getSessionStorageSize
end

def getLocation
obj = execute(:getLocation) || {} # android returns null
Location.new obj['latitude'], obj['longitude'], obj['altitude']
raise Error::WebDriverError::UnsupportedOperationError, 'The W3C standard does not currently support getting location'
end

def setLocation(lat, lon, alt)
loc = {:latitude => lat, :longitude => lon, :altitude => alt}
execute :setLocation, {}, :location => loc
def setLocation(_lat, _lon, _alt)
raise Error::WebDriverError::UnsupportedOperationError, 'The W3C standard does not currently support setting location'
end

def getNetworkConnection
execute :getNetworkConnection
raise Error::WebDriverError::UnsupportedOperationError, 'The W3C standard does not currently support getting network connection'
end

def setNetworkConnection(type)
execute :setNetworkConnection, {}, :parameters => {:type => type}
def setNetworkConnection(_type)
raise Error::WebDriverError::UnsupportedOperationError, 'The W3C standard does not currently support setting network connection'
end

#
Expand Down
48 changes: 0 additions & 48 deletions rb/spec/integration/selenium/webdriver/location_spec.rb

This file was deleted.

34 changes: 0 additions & 34 deletions rb/spec/integration/selenium/webdriver/network_connection_spec.rb

This file was deleted.

0 comments on commit dd563ce

Please sign in to comment.