Sha256: 8e28c03ecf1fa909f2d57ce22a863387b37428cf887d76d2de5dd49fbf41f8b7
Contents?: true
Size: 561 Bytes
Versions: 66
Compression:
Stored size: 561 Bytes
Contents
module Selenium module WebDriver module DriverExtensions module HasLocation def location @bridge.getLocation end 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 def set_location(lat, lon, alt) self.location = Location.new(Float(lat), Float(lon), Float(alt)) end end end end end
Version data entries
66 entries across 66 versions & 4 rubygems