Sha256: 4c7a4a2998cf0df4acae11ec0ecac4abad63e187699fb811cf29e16f232b4794
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
require File.expand_path("../spec_helper", __FILE__) module Selenium::WebDriver::DriverExtensions describe HasLocation do let(:lat) { 40.714353 } let(:lon) { -74.005973 } let(:alt) { 0.056747 } let(:location) { Selenium::WebDriver::Location.new lat, lon, alt } compliant_on :browser => [:iphone, :android] do it "can get and set location" do driver.manage.timeouts.implicit_wait = 2 driver.navigate.to url_for("html5Page.html") driver.location = location loc = driver.location loc.latitude.should be_within(0.000001).of(lat) loc.longitude.should be_within(0.000001).of(lon) loc.altitude.should be_within(0.000001).of(alt) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems