module Selenium::WebDriver::DriverExtensions::HasLocation
Public Instance Methods
location()
click to toggle source
# File lib/selenium/webdriver/common/driver_extensions/has_location.rb, line 24 def location @bridge.location end
location=(loc)
click to toggle source
# File lib/selenium/webdriver/common/driver_extensions/has_location.rb, line 28 def location=(loc) raise TypeError, "expected #{Location}, got #{loc.inspect}:#{loc.class}" unless loc.is_a?(Location) @bridge.set_location loc.latitude, loc.longitude, loc.altitude end
set_location(lat, lon, alt)
click to toggle source
# File lib/selenium/webdriver/common/driver_extensions/has_location.rb, line 34 def set_location(lat, lon, alt) self.location = Location.new(Float(lat), Float(lon), Float(alt)) end