Sha256: 931457ed7e07b00999b2d6869b8966f47ad9459c7236fe29a9b769be2a354b0d
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
require 'spec/spec_helper' require 'watir' require 'firewatir' require 'extensions/watir' describe 'Watir Extensions' do share_examples_for 'extended watir' do def should_provide_display_value_method_for_class klass container = stub() container.stubs(:page_container) element = klass.new container, :index, 1 element.method(:display_value) # should be defined end specify { should_provide_display_value_method_for_class @module::TextField } specify { should_provide_display_value_method_for_class @module::NonControlElement} specify { should_provide_display_value_method_for_class @module::H3 } end if PLATFORM =~ /mswin/ describe "IE Watir" do require 'watir/ie' it_should_behave_like 'extended watir' Watir.add_display_value_methods_to Watir before do @module = Watir end end end describe "Fire Watir" do it_should_behave_like 'extended watir' Watir.add_display_value_methods_to FireWatir before do @module = FireWatir end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bret-watircraft-0.4.3 | spec/watir_spec.rb |
bret-watircraft-0.4.4 | spec/watir_spec.rb |
bret-watircraft-0.4.5 | spec/watir_spec.rb |
bret-watircraft-0.5.0 | spec/watir_spec.rb |