Module: Selenium::WebDriver::DriverExtensions::HasLocation Private
- Defined in:
- rb/lib/selenium/webdriver/common/driver_extensions/has_location.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary (collapse)
- - (Object) location private
- - (Object) location=(loc) private
- - (Object) set_location(lat, lon, alt) private
Instance Method Details
- (Object) location
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_location.rb', line 6 def location @bridge.getLocation end |
- (Object) location=(loc)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 13 14 15 16 |
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_location.rb', line 10 def location=(loc) unless loc.kind_of?(Location) raise TypeError, "expected #{Location}, got #{loc.inspect}:#{loc.class}" end @bridge.setLocation loc.latitude, loc.longitude, loc.altitude end |
- (Object) set_location(lat, lon, alt)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'rb/lib/selenium/webdriver/common/driver_extensions/has_location.rb', line 18 def set_location(lat, lon, alt) self.location = Location.new(Float(lat), Float(lon), Float(alt)) end |