Sha256: adabdee7af1a56fd55ae5d2699956168868173a308e6e3c5c672b882aa8ceb39
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "WatirWebdriverPerformance-NonSupportedBrowser" do let!(:b) { @b } before(:all) do @b ||= Watir::Browser.new :safari end after(:all) do @b.close end pending "should raise an error when a non supported browser is encountered" do b.goto "google.com" expect(lambda { b.performance }).to raise_error RuntimeError, 'Could not collect performance metrics from your current browser. Please ensure the browser you are using supports collecting performance metrics.' end pending "should return false for supported" do b.goto "google.com" expect(b).not_to be_performance_supported end pending "should not support performance as block" do b.goto "google.com" b.with_performance {|performance| expect(performance).not_to be_nil } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-performance-0.5.0 | spec/watir-performance-non-supported-browser_spec.rb |