Sha256: 3d259bf721216bd789efec0a68a183dec0ba5fe6e0d7e17fb97392c1a8286521
Contents?: true
Size: 841 Bytes
Versions: 2
Compression:
Stored size: 841 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 :firefox end after(:all) do @b.close end it "should raise an error when a non supported browser is encountered" do b.goto "google.com" lambda { b.performance }.should raise_error RuntimeError, 'Could not collect performance metrics from your current browser. Please ensure the browser you are using supports collecting performance metrics.' end it "should return false for firefox supported" do b.goto "google.com" b.should_not be_performance_supported end it "should not support performance as block" do b.goto "google.com" b.with_performance {|performance| performance.should be_nil } end end
Version data entries
2 entries across 2 versions & 1 rubygems