Sha256: fbf3ccd2d97c6431482697715f49f5c8d900b52050cc26f1cd798e38457d91aa

Contents?: true

Size: 1022 Bytes

Versions: 15

Compression:

Stored size: 1022 Bytes

Contents

require File.expand_path('../../watirspec_desktophelper', __FILE__)
require File.expand_path('../shared/shared', __FILE__)

describe 'QuickSearchField' do
  
  let(:widget) { browser.quick_window(:name, "Document Window").quick_toolbar(:name, "Document Toolbar").quick_searchfield(:name, "tbs_MainSearch") }
   subject { widget }
     
   it_behaves_like "a widget"
   it_behaves_like "an editfield"
   
  its(:type) { should == :search }
   
  describe '#quick_searchfield' do
    it 'constructs searchfield by its name' do
      browser.quick_window(:name, "Document Window").quick_toolbar(:name, "Document Toolbar").quick_searchfield(:name, "tbs_MainSearch").should exist
    end
  end
   
  describe '#search_with_text' do
    it 'returns text in address field after loading of page' do
      browser.quick_window(:name, "Document Window").quick_toolbar(:name, "Document Toolbar").quick_searchfield(:name, "tbs_MainSearch").search_with_text("old cars").should include "http://www.google.no/search"
    end
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
operawatir-0.7.pre4-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.7.pre3-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.7.pre2-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.7.pre1-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.6.pre1-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.5.1-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.5-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.5.pre3-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.5.pre2-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.5.pre1-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.4.3.pre1-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.4.2-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.4.1-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.4.1.pre7-jruby spec/operawatir/desktop/quicksearchfield_spec.rb
operawatir-0.4.1.pre6-jruby spec/operawatir/desktop/quicksearchfield_spec.rb